diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-03-20 14:57:12 +0800 |
---|---|---|
committer | Jimmy Hu <jimmy.hu@dexon.org> | 2019-03-27 15:25:10 +0800 |
commit | 6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7 (patch) | |
tree | 2c18fe616f84df7274f19f88cf325fe558869918 /simulation | |
parent | fa3b5a29499739e90b3cf17f9a0cf60a72a64fc0 (diff) | |
download | tangerine-consensus-6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7.tar tangerine-consensus-6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7.tar.gz tangerine-consensus-6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7.tar.bz2 tangerine-consensus-6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7.tar.lz tangerine-consensus-6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7.tar.xz tangerine-consensus-6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7.tar.zst tangerine-consensus-6efe199cb38eb4cb9a9a64d98ff5f8c4fb997da7.zip |
core: merge notarySet and DKGSet (#488)
* core: ăăăȘă DKGSet
* test logger
* temporary fix before finalized
* core: Sign psig on commit vote
* Add syncer log
* fixup
Diffstat (limited to 'simulation')
-rw-r--r-- | simulation/config/utils.go | 4 | ||||
-rw-r--r-- | simulation/node.go | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/simulation/config/utils.go b/simulation/config/utils.go index 6e9024a..ade7471 100644 --- a/simulation/config/utils.go +++ b/simulation/config/utils.go @@ -37,8 +37,6 @@ func StateChangeTypeFromString(s string) test.StateChangeType { return test.StateChangeMinBlockInterval case "notary_set_size": return test.StateChangeNotarySetSize - case "dkg_set_size": - return test.StateChangeDKGSetSize } panic(fmt.Errorf("unsupported state change type %s", s)) } @@ -48,7 +46,7 @@ func StateChangeTypeFromString(s string) test.StateChangeType { func StateChangeValueFromString( t test.StateChangeType, v string) interface{} { switch t { - case test.StateChangeNotarySetSize, test.StateChangeDKGSetSize: + case test.StateChangeNotarySetSize: ret, err := strconv.ParseUint(v, 10, 32) if err != nil { panic(err) diff --git a/simulation/node.go b/simulation/node.go index 5bd8ec1..ee2dd89 100644 --- a/simulation/node.go +++ b/simulation/node.go @@ -206,7 +206,6 @@ func (n *node) prepareConfigs() { cConfig := n.cfg.Node.Consensus n.gov.State().RequestChange( test.StateChangeNotarySetSize, cConfig.NotarySetSize) // #nosec G104 - n.gov.State().RequestChange(test.StateChangeDKGSetSize, cConfig.DKGSetSize) // #nosec G104 n.gov.State().RequestChange(test.StateChangeLambdaBA, time.Duration( cConfig.LambdaBA)*time.Millisecond) // #nosec G104 n.gov.State().RequestChange(test.StateChangeLambdaDKG, time.Duration( |