Git Product home page Git Product logo

Gallactic Build Status

Gallactic blockchain with SputnikVM and Tendermint consensus engine

Compiling the code

You need to make sure you have install Go (version 1.10.1 or higher) and rust. After installing them, you can follow these steps to compile and build the gallactic project:

mkdir -p $GOPATH/src/github.com/gallactic/gallactic
cd $GOPATH/src/github.com/gallactic/gallactic
git clone https://github.com/gallactic/gallactic.git .
make

Run gallactic version to make sure gallactic is properly compiled and installed in your machine.

Running Gallactic

Initialize

Initialize the working directory by running:

gallactic init -w=<workspace_directory>

This command will create config.toml, genesis.json and private key for validator.

Run

For running a Gallactic node, use:

gallactic start -w=<workspace_directory>

This command will ask you to enter the private key of the validator. Enter the private key (priv_key) of the validator, as provided by the init command above. The Gallactic blockchain starts immediately, upon successful acceptance of the private key.

Usage of Docker

Install Docker and run the following commands to build the docker file:

cd $GOPATH/src/github.com/gallactic/gallactic
docker build . --tag gallactic

Then you can execute the Gallactic blockchain, using the docker:

# Initializing the working directory
docker run -it --rm -v "/tmp/chain1:/gallactic" gallactic init
# Starting the blockchain
docker run -it --rm -v "/tmp/chain1:/gallactic" -p 1337:1337 -p 50051:50051 -p 46656:46656 gallactic start

FOR WINDOWS

# Create folder in Windows
  c:\Users\chain1
# Run powershell has adminstration
# Initializing the working directory
 docker run -it --rm -v  c:\Users\chain1\:/gallactic gallactic init
# Starting the blockchain
 docker run -it --rm -v c:\Users\chain1\::/gallactic -p 1337:1337 -p 50051:50051 -p 46656:46656 gallactic start

Contribution

Thanks for considering to contribute in Gallactic project! You can read here to read how you can contribute on Gallactic project.

License

The Gallactic blockchain is under MIT license.

gallactic's Projects

gallactic doesnโ€™t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.