set received to nil between rounds

This commit is contained in:
William Banfield
2022-11-22 21:32:52 -05:00
parent 85ded710f5
commit adfec78fff

View File

@@ -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.