diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-06 14:32:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 14:32:48 +0800 |
commit | e662353293b58637acc788a5c214a8904bb1cfcb (patch) | |
tree | 46d56a0c25dd5b96227ddbbc16892bee023bc360 /simulation/config/config.go | |
parent | c537e964d9031a07c125a7225391e26827d9eb7a (diff) | |
download | dexon-consensus-e662353293b58637acc788a5c214a8904bb1cfcb.tar dexon-consensus-e662353293b58637acc788a5c214a8904bb1cfcb.tar.gz dexon-consensus-e662353293b58637acc788a5c214a8904bb1cfcb.tar.bz2 dexon-consensus-e662353293b58637acc788a5c214a8904bb1cfcb.tar.lz dexon-consensus-e662353293b58637acc788a5c214a8904bb1cfcb.tar.xz dexon-consensus-e662353293b58637acc788a5c214a8904bb1cfcb.tar.zst dexon-consensus-e662353293b58637acc788a5c214a8904bb1cfcb.zip |
core: Run DKG stuffs only if the node is in DKG set (#302)
Diffstat (limited to 'simulation/config/config.go')
-rw-r--r-- | simulation/config/config.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go index 5a548f1..023c4df 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -34,6 +34,8 @@ type Consensus struct { LambdaBA int `toml:"lambda_ba"` LambdaDKG int `toml:"lambda_dkg"` RoundInterval int + NotarySetSize uint32 + DKGSetSize uint32 `toml:"dkg_set_size"` } // Legacy config. @@ -46,7 +48,7 @@ type Legacy struct { type Node struct { Consensus Consensus Legacy Legacy - Num int + Num uint32 MaxBlock uint64 } @@ -92,6 +94,8 @@ func GenerateDefault(path string) error { LambdaBA: 250, LambdaDKG: 1000, RoundInterval: 30 * 1000, + NotarySetSize: 7, + DKGSetSize: 7, }, Legacy: Legacy{ ProposeIntervalMean: 500, |