Skip to content

Next-gen blockchain project creating an ecosystem of modular, flexible, and individually configurable interoperating blockchains. Gallactic is the primary public chain configuration and template for this ecosystem.

License

Notifications You must be signed in to change notification settings

vlasfama/gallactic

 
 

Repository files navigation

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.

About

Next-gen blockchain project creating an ecosystem of modular, flexible, and individually configurable interoperating blockchains. Gallactic is the primary public chain configuration and template for this ecosystem.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.0%
  • Other 1.0%