Skip to content

Commit

Permalink
Ensure the consistency of wal message and chainState
Browse files Browse the repository at this point in the history
  • Loading branch information
niuxiaojie81 committed Mar 6, 2024
1 parent 278396b commit 1e7c756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/cbft/wal_bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1e7c756

Please sign in to comment.