Gallactic blockchain with SputnikVM and Tendermint consensus engine
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.
Initialize the working directory by running:
gallactic init -w=<workspace_directory>
This command will create config.toml, genesis.json and private key for validator.
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.
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
Thanks for considering to contribute in Gallactic project! You can read here to read how you can contribute on Gallactic project.
The Gallactic blockchain is under MIT license.