diff options
Diffstat (limited to 'core/consensus.go')
-rw-r--r-- | core/consensus.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/consensus.go b/core/consensus.go index 36cd57e..6c841bf 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -84,10 +84,14 @@ func NewConsensus( } // Setup sequencer by information returned from Governace. + var validators types.ValidatorIDs + for vID := range validatorSet { + validators = append(validators, vID) + } to := newTotalOrdering( uint64(gov.GetTotalOrderingK()), uint64(float32(len(validatorSet)-1)*gov.GetPhiRatio()+1), - uint64(len(validatorSet))) + validators) return &Consensus{ rbModule: rb, |