diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-09-05 10:32:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 10:32:25 +0800 |
commit | 41641e10286dd7b1fdcced6a51157e061d545ef5 (patch) | |
tree | 69129be3df35d7abde7b94ef5ceec828787b3498 /simulation/config | |
parent | 04a63a22a24abaaa91b1d981e6d95260d80dadf4 (diff) | |
download | dexon-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar dexon-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.gz dexon-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.bz2 dexon-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.lz dexon-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.xz dexon-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.zst dexon-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.zip |
misc: Polish BA. (#94)
Diffstat (limited to 'simulation/config')
-rw-r--r-- | simulation/config/config.go | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go index c59b663..2f03f85 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -41,13 +41,19 @@ type Consensus struct { GenesisCRS string `toml:"genesis_crs"` } -// Validator config for the simulation. -type Validator struct { - Consensus Consensus - Num int +// Legacy config. +type Legacy struct { ProposeIntervalMean float64 ProposeIntervalSigma float64 - MaxBlock uint64 +} + +// Validator config for the simulation. +type Validator struct { + Consensus Consensus + Legacy Legacy + Num int + Lambda int + MaxBlock uint64 } // Networking config. @@ -90,10 +96,13 @@ func GenerateDefault(path string) error { ChainNum: 7, GenesisCRS: "In DEXON we trust.", }, - Num: 7, - ProposeIntervalMean: 500, - ProposeIntervalSigma: 30, - MaxBlock: math.MaxUint64, + Legacy: Legacy{ + ProposeIntervalMean: 500, + ProposeIntervalSigma: 50, + }, + Num: 7, + Lambda: 250, + MaxBlock: math.MaxUint64, }, Networking: Networking{ Type: NetworkTypeTCPLocal, |