From adfec78fff45e710fca42beea8391721a20b7b1c Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 22 Nov 2022 21:32:52 -0500 Subject: [PATCH] set received to nil between rounds --- consensus/reactor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consensus/reactor.go b/consensus/reactor.go index 623ca8e3a..c7ff8bc97 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -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.