From 0e8fda250804b9c46232287a18af05e7ccf5bf72 Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Wed, 12 Sep 2018 09:56:03 +0800 Subject: core: total ordering with chain ID (#100) --- core/consensus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/consensus.go') diff --git a/core/consensus.go b/core/consensus.go index e021024..91ca657 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -157,7 +157,7 @@ func NewConsensus( to := newTotalOrdering( uint64(gov.GetTotalOrderingK()), uint64(float32(len(validatorSet)-1)*gov.GetPhiRatio()+1), - validators) + gov.GetChainNumber()) con := &Consensus{ ID: types.NewValidatorID(prv.PublicKey()), -- cgit v1.2.3