From 5a6633fcfb91190fa62f46128e41cc6e9e462bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B3=B4=E6=80=A1=E8=AA=A0?= Date: Mon, 30 Sep 2024 21:31:16 -0700 Subject: [PATCH] fix timeout skip condition --- 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 0b05d7e8c1c1..c1c75f2abfa7 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 }