diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-09-12 09:56:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 09:56:03 +0800 |
commit | 0e8fda250804b9c46232287a18af05e7ccf5bf72 (patch) | |
tree | bf4629c34bb61b99f4c51d632df2da9ced54c8bb /core/consensus.go | |
parent | 292ad73ec08621fa9beef5f028860131fcbf9bd9 (diff) | |
download | tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.gz tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.bz2 tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.lz tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.xz tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.tar.zst tangerine-consensus-0e8fda250804b9c46232287a18af05e7ccf5bf72.zip |
core: total ordering with chain ID (#100)
Diffstat (limited to 'core/consensus.go')
-rw-r--r-- | core/consensus.go | 2 |
1 files changed, 1 insertions, 1 deletions
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()), |