diff options
Diffstat (limited to 'simulation/governance.go')
-rw-r--r-- | simulation/governance.go | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/simulation/governance.go b/simulation/governance.go index 42577d9..61794a5 100644 --- a/simulation/governance.go +++ b/simulation/governance.go @@ -34,8 +34,8 @@ type simGovernance struct { expectedNumValidators int k int phiRatio float32 + chainNum uint32 crs string - agreementK int } // newSimGovernance returns a new simGovernance instance. @@ -44,10 +44,10 @@ func newSimGovernance( return &simGovernance{ validatorSet: make(map[types.ValidatorID]decimal.Decimal), expectedNumValidators: numValidators, - k: consensusConfig.K, - phiRatio: consensusConfig.PhiRatio, - crs: consensusConfig.Agreement.GenesisCRS, - agreementK: consensusConfig.Agreement.K, + k: consensusConfig.K, + phiRatio: consensusConfig.PhiRatio, + chainNum: consensusConfig.ChainNum, + crs: consensusConfig.GenesisCRS, } } @@ -81,6 +81,11 @@ func (g *simGovernance) GetBlockProposingInterval() int { return 0 } +// GetChainNumber returns number of chain. +func (g *simGovernance) GetChainNumber() uint32 { + return g.chainNum +} + // GetConfigurationChangeEvent returns configuration change event since last // epoch. func (g *simGovernance) GetConfigurationChangeEvent( |