58
GitHub - dexon-foundation/dexon-consensus: DEXON consensus Implementation &...
source link: https://github.com/dexon-foundation/dexon-consensus
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
DEXON Consensus
Getting Started
Prerequisites
Installation
-
Clone the repo
git clone https://github.com/dexon-foundation/dexon-consensus.git cd dexon-consensus
-
Setup GOPATH, the GOPATH could be anywhere in the system. Here we use
$HOME/go
:export GOPATH=$HOME/go export PATH=$GOPATH/bin:$PATH
You should write these settings to your
.bashrc
file. -
Install go dependency management tool
./bin/install_tools.sh
-
Install all dependencies
dep ensure
Run Unit Tests
make pre-submit
Simulation
Simulation with Nodes connected by HTTP
- Setup the configuration under
./test.toml
- Compile and install the cmd
dexon-simulation
make
- Run simulation:
dexcon-simulation -config test.toml -init
Simulation with test.Scheduler
- Setup the configuration under
./test.toml
- Compile and install the cmd
dexon-simulation-with-scheduler
make
- Run simulation with scheduler:
dexcon-simulation-with-scheduler -config test.toml
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK