Skip to content

Commit

Permalink
acutally use value
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 15, 2023
1 parent a5ea98f commit 1e96dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ func (conR *Reactor) gossipVotesForHeight(
rs *cstypes.RoundState,
prs *cstypes.PeerRoundState,
ps *PeerState,
isProposer bool,
sendExtensions bool,
) bool {
// If there are lastCommits to send...
if prs.Step == cstypes.RoundStepNewHeight {
Expand Down Expand Up @@ -878,7 +878,7 @@ func (conR *Reactor) gossipVotesForHeight(
}
// If there are precommits to send...
if prs.Step <= cstypes.RoundStepPrecommitWait && prs.Round != -1 && prs.Round <= rs.Round {
if ps.PickSendVote(rs.Votes.Precommits(prs.Round), true) {
if ps.PickSendVote(rs.Votes.Precommits(prs.Round), sendExtensions) {
logger.Debug("Picked rs.Precommits(prs.Round) to send", "round", prs.Round)
return true
}
Expand Down

0 comments on commit 1e96dfe

Please sign in to comment.