Skip to content

Commit

Permalink
[fix] remove double sign checking (#3763)
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Chen <[email protected]>
  • Loading branch information
Leo Chen authored Jun 10, 2021
1 parent 6703b7f commit a33bf91
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions consensus/leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,13 @@ func (consensus *Consensus) onCommit(recvMsg *FBFTMessage) {

//// Write - Start
// Check for potential double signing
if consensus.checkDoubleSign(recvMsg) {
return
}

// FIXME (leo): failed view change, will comeback later
/*
if consensus.checkDoubleSign(recvMsg) {
return
}
*/
if _, err := consensus.Decider.AddNewVote(
quorum.Commit, recvMsg.SenderPubkeys,
&sign, recvMsg.BlockHash,
Expand Down

0 comments on commit a33bf91

Please sign in to comment.