mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-25 02:00:32 +00:00
set received to nil between rounds
This commit is contained in:
@@ -1452,6 +1452,8 @@ func (ps *PeerState) ApplyNewRoundStepMessage(msg *NewRoundStepMessage) {
|
||||
// We'll update the BitArray capacity later.
|
||||
ps.PRS.Prevotes = nil
|
||||
ps.PRS.Precommits = nil
|
||||
ps.PRS.PrevotesReceived = nil
|
||||
ps.PRS.PrecommitsReceived = nil
|
||||
}
|
||||
if psHeight == msg.Height && psRound != msg.Round && msg.Round == psCatchupCommitRound {
|
||||
// Peer caught up to CatchupCommitRound.
|
||||
|
||||
Reference in New Issue
Block a user