Skip to content

Commit

Permalink
silencing time boundary checks to kickstart network
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 committed Jan 9, 2025
1 parent cff689e commit 534e88d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions internal/consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1408,18 +1408,18 @@ func (cs *State) defaultDoPrevote(height int64, round int32) {
return
}

if cs.Proposal.POLRound == -1 && !cs.proposalIsTimely() {
lowerBound, upperBound := cs.timelyProposalMargins()
// TODO: use Warn level once available.
logger.Info("prevote step: Proposal is not timely; prevoting nil",
"timestamp", cs.Proposal.Timestamp.Format(time.RFC3339Nano),
"receive_time", cs.ProposalReceiveTime.Format(time.RFC3339Nano),
"timestamp_difference", cs.ProposalReceiveTime.Sub(cs.Proposal.Timestamp),
"lower_bound", lowerBound,
"upper_bound", upperBound)
cs.signAddVote(types.PrevoteType, nil, types.PartSetHeader{}, nil)
return
}
// if cs.Proposal.POLRound == -1 && !cs.proposalIsTimely() {
lowerBound, upperBound := cs.timelyProposalMargins()
// TODO: use Warn level once available.
logger.Info("prevote step: Proposal is not timely; prevoting nil",
"timestamp", cs.Proposal.Timestamp.Format(time.RFC3339Nano),
"receive_time", cs.ProposalReceiveTime.Format(time.RFC3339Nano),
"timestamp_difference", cs.ProposalReceiveTime.Sub(cs.Proposal.Timestamp),
"lower_bound", lowerBound,
"upper_bound", upperBound)
// cs.signAddVote(types.PrevoteType, nil, types.PartSetHeader{}, nil)
// return
// }

if cs.Proposal.POLRound == -1 {
logger.Debug("prevote step: Proposal is timely",
Expand Down

0 comments on commit 534e88d

Please sign in to comment.