diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-01-21 13:11:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 13:11:04 +0800 |
commit | caa9ad362b4d57bba8551be4074c86f820b7881c (patch) | |
tree | 6c26d273004ecda769c86ced3aacd420c8bd0490 /core/utils.go | |
parent | b27f9c8dce7d0e09ae191dcb00562abf97faa806 (diff) | |
download | dexon-consensus-caa9ad362b4d57bba8551be4074c86f820b7881c.tar dexon-consensus-caa9ad362b4d57bba8551be4074c86f820b7881c.tar.gz dexon-consensus-caa9ad362b4d57bba8551be4074c86f820b7881c.tar.bz2 dexon-consensus-caa9ad362b4d57bba8551be4074c86f820b7881c.tar.lz dexon-consensus-caa9ad362b4d57bba8551be4074c86f820b7881c.tar.xz dexon-consensus-caa9ad362b4d57bba8551be4074c86f820b7881c.tar.zst dexon-consensus-caa9ad362b4d57bba8551be4074c86f820b7881c.zip |
core: Fix BA3.0 implmenetation (#426)
* types: Add vote type
* core: remove stateFastRollback
* core: rename lockRound to lockIter
* core: Implement real ba3.0
* core: Add test for confirm
* Fix VoteFastCom in agreement result
* lockIter will always increase
Diffstat (limited to 'core/utils.go')
-rw-r--r-- | core/utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/utils.go b/core/utils.go index 8579e6e..14780e7 100644 --- a/core/utils.go +++ b/core/utils.go @@ -176,7 +176,7 @@ func VerifyAgreementResult( voted := make(map[types.NodeID]struct{}, len(notarySet)) voteType := res.Votes[0].Type votePeriod := res.Votes[0].Period - if voteType != types.VoteFast && voteType != types.VoteCom { + if voteType != types.VoteFastCom && voteType != types.VoteCom { return ErrIncorrectVoteType } for _, vote := range res.Votes { |