Skip to content

Commit

Permalink
[consensus][viewchange] fix total power of signers in IsQuorumAchieve…
Browse files Browse the repository at this point in the history
…d for view change (harmony-one#2758)
  • Loading branch information
gupadhyaya authored Apr 6, 2020
1 parent 094a613 commit 054c3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/view_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func (consensus *Consensus) onViewChange(msg *msg_pb.Message) {
binary.LittleEndian.PutUint64(blockNumBytes[:], consensus.blockNum)
commitPayload := append(blockNumBytes[:], consensus.blockHash[:]...)
if _, err := consensus.Decider.SubmitVote(
quorum.Commit,
quorum.ViewChange,
newLeaderKey,
newLeaderPriKey.SignHash(commitPayload),
common.BytesToHash(consensus.blockHash[:]),
Expand Down

0 comments on commit 054c3cb

Please sign in to comment.