Don't check PBTS-timeliness when in replay mode (#8774)

Closes #8781

Temporary fix to this issue, so that e2e tests don't fail and potentially leave other problems uncovered.
This commit is contained in:
Sergio Mena
2022-06-16 21:31:17 +02:00
committed by GitHub
parent 7cf09399bb
commit a4f29bfd44

View File

@@ -1530,7 +1530,8 @@ func (cs *State) defaultDoPrevote(ctx context.Context, height int64, round int32
}
sp := cs.state.ConsensusParams.Synchrony.SynchronyParamsOrDefaults()
if cs.Proposal.POLRound == -1 && cs.LockedRound == -1 && !cs.proposalIsTimely() {
//TODO: Remove this temporary fix when the complete solution is ready. See #8739
if !cs.replayMode && cs.Proposal.POLRound == -1 && cs.LockedRound == -1 && !cs.proposalIsTimely() {
logger.Debug("prevote step: Proposal is not timely; prevoting nil",
"proposed",
tmtime.Canonical(cs.Proposal.Timestamp).Format(time.RFC3339Nano),