diff options
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( |