From 1e7c756141dae3ac215be65b2d32a97a58bbfdd8 Mon Sep 17 00:00:00 2001 From: niuxiaojie81 <85773309@qq.com> Date: Wed, 6 Mar 2024 10:09:22 +0800 Subject: [PATCH] Ensure the consistency of wal message and chainState --- consensus/cbft/wal_bridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/cbft/wal_bridge.go b/consensus/cbft/wal_bridge.go index fd83ab8127..aeed0a0493 100644 --- a/consensus/cbft/wal_bridge.go +++ b/consensus/cbft/wal_bridge.go @@ -548,7 +548,7 @@ func (cbft *Cbft) shouldRecovery(msg protocols.WalMsg) (bool, error) { } // equalViewState highestQCBlockBn, _ := cbft.HighestQCBlockBn() - return msg.BlockNumber() > highestQCBlockBn, nil + return msg.BlockNumber() >= highestQCBlockBn, nil } // equalViewState check if the msg view is equal with current.