gallactic

module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2019 License: MIT

README

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.

Directories

Path Synopsis
cmd
consensus
Package consensus contains the logic maintaining and connecting to our Tendermint consensus network.
Package consensus contains the logic maintaining and connecting to our Tendermint consensus network.
evm
key
rpc
grpc/proto3
Package proto3 is a reverse proxy.
Package proto3 is a reverse proxy.
txs
tx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL