diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-09-18 09:07:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 09:07:52 +0800 |
commit | 81cf96477127a2da8843d544802027c7061a9c06 (patch) | |
tree | 70c06aec5df92df1dd93b605cc7afdbd2b8b0347 /simulation/config | |
parent | 8a908e98279d7e80978cd412057eddd4a6bbf06c (diff) | |
download | dexon-consensus-81cf96477127a2da8843d544802027c7061a9c06.tar dexon-consensus-81cf96477127a2da8843d544802027c7061a9c06.tar.gz dexon-consensus-81cf96477127a2da8843d544802027c7061a9c06.tar.bz2 dexon-consensus-81cf96477127a2da8843d544802027c7061a9c06.tar.lz dexon-consensus-81cf96477127a2da8843d544802027c7061a9c06.tar.xz dexon-consensus-81cf96477127a2da8843d544802027c7061a9c06.tar.zst dexon-consensus-81cf96477127a2da8843d544802027c7061a9c06.zip |
core: remove ticker parameter from NewConsensus
- remove BlockProposingInterval, it's replaced
by lambda.
- remove ticker parameter of NewConsensus,
ticker would be derived from governance.
- leave a backdoor to hook the construction
of ticker.
- move 'Lambda' config from to consensus.
Diffstat (limited to 'simulation/config')
-rw-r--r-- | simulation/config/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go index f8f629b..ceb0abd 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -40,6 +40,7 @@ type Consensus struct { K int ChainNum uint32 GenesisCRS string `toml:"genesis_crs"` + Lambda int } // Legacy config. @@ -53,7 +54,6 @@ type Validator struct { Consensus Consensus Legacy Legacy Num int - Lambda int MaxBlock uint64 } @@ -96,13 +96,13 @@ func GenerateDefault(path string) error { K: 1, ChainNum: 7, GenesisCRS: "In DEXON we trust.", + Lambda: 250, }, Legacy: Legacy{ ProposeIntervalMean: 500, ProposeIntervalSigma: 50, }, Num: 7, - Lambda: 250, MaxBlock: math.MaxUint64, }, Networking: Networking{ |