From e6190dd25ffffb78aba3c18568f4e31eb6ab997e Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 30 Sep 2024 21:32:22 -0700 Subject: [PATCH] fix timeout skip condition (#659) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 賴怡誠 --- consensus/XDPoS/engines/engine_v2/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/XDPoS/engines/engine_v2/engine.go b/consensus/XDPoS/engines/engine_v2/engine.go index 0b05d7e8c1..c1c75f2abf 100644 --- a/consensus/XDPoS/engines/engine_v2/engine.go +++ b/consensus/XDPoS/engines/engine_v2/engine.go @@ -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 }