undo reset on prevotes

This commit is contained in:
William Banfield
2021-09-17 15:38:18 -04:00
parent 79469af2e6
commit 108eecf12a
+3 -3
View File
@@ -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