Skip to content
DEXON consensus Implementation & Simulation
Branch: master
Clone or download
jimmyhu-dexon core: optimize dkg protocol (#582)
* core: fast filter already received prv share

* core: do not propose duplicated complaint
Latest commit 42d585f May 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci core: fix false alarm (#564) Apr 11, 2019
bin misc: fix dep Apr 18, 2019
cmd big-bang: single chain (#446) Feb 19, 2019
common core: clean TODOs (#539) Apr 1, 2019
core core: optimize dkg protocol (#582) May 6, 2019
images/dexon-alpine misc: Use prebuild bls docker image. (#199) Oct 15, 2018
integration_test core: fix false alarm (#564) Apr 11, 2019
simulation
test_config core: switch round by block height (#450) Feb 20, 2019
.gitignore misc: Add gosec to check security issues (#424) Jan 18, 2019
.travis.yml core: Longer lambda for TravisCI (#365) Dec 10, 2018
GNUmakefile core: reset DKG (#502) Mar 20, 2019
Gopkg.lock misc: fix dep Apr 18, 2019
Gopkg.toml misc: fix dep Apr 18, 2019
LICENSE Add LICENSE declaration file (#318) Nov 13, 2018
README.md

README.md

CircleCI

DEXON Consensus

Getting Started

Prerequisites

  • Go 1.10 or a newer version
  • dep as dependency management

Installation

  1. Clone the repo

    git clone https://github.com/dexon-foundation/dexon-consensus.git
    cd dexon-consensus
    
  2. 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.

  3. Install go dependency management tool

    ./bin/install_tools.sh
    
  4. Install all dependencies

    dep ensure
    

Run Unit Tests

make pre-submit

Simulation

Simulation with Nodes connected by HTTP

  1. Setup the configuration under ./test.toml
  2. Compile and install the cmd dexon-simulation
make
  1. Run simulation:
dexcon-simulation -config test.toml -init

Simulation with test.Scheduler

  1. Setup the configuration under ./test.toml
  2. Compile and install the cmd dexon-simulation-with-scheduler
make
  1. Run simulation with scheduler:
dexcon-simulation-with-scheduler -config test.toml
You can’t perform that action at this time.