From 108eecf12aeb3c9c8f52439d10ce0fcfc4a62b71 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 17 Sep 2021 15:38:18 -0400 Subject: [PATCH] undo reset on prevotes --- internal/consensus/state.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index 38e2d5c51..d7b692b40 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -1455,9 +1455,9 @@ func (cs *State) enterPrecommit(height int64, round int32) { // The +2/3 prevotes for this round is the POL for our unlock. logger.Debug("precommit step; +2/3 prevotes for a block we do not have; voting nil", "block_id", blockID) - // cs.LockedRound = -1 - // cs.LockedBlock = nil - // cs.LockedBlockParts = nil + cs.LockedRound = -1 + cs.LockedBlock = nil + cs.LockedBlockParts = nil if !cs.ProposalBlockParts.HasHeader(blockID.PartSetHeader) { cs.ProposalBlock = nil