Skip to content

Commit

Permalink
fix timeout skip condition (#659)
Browse files Browse the repository at this point in the history
Co-authored-by: 賴怡誠 <[email protected]>
  • Loading branch information
liam-lai and 賴怡誠 authored Oct 1, 2024
1 parent 37f2320 commit e6190dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/XDPoS/engines/engine_v2/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ func (x *XDPoS_v2) VoteHandler(chain consensus.ChainReader, voteMsg *types.Vote)
3. Broadcast(Not part of consensus)
*/
func (x *XDPoS_v2) VerifyTimeoutMessage(chain consensus.ChainReader, timeoutMsg *types.Timeout) (bool, error) {
if timeoutMsg.Round <= x.currentRound {
if timeoutMsg.Round < x.currentRound {
log.Debug("[VerifyTimeoutMessage] Disqualified timeout message as the proposed round does not match currentRound", "timeoutHash", timeoutMsg.Hash(), "timeoutRound", timeoutMsg.Round, "currentRound", x.currentRound)
return false, nil
}
Expand Down

0 comments on commit e6190dd

Please sign in to comment.