From f59905d059909dee4b8b0f02ecd08f63aaa982ea Mon Sep 17 00:00:00 2001 From: William Banfield Date: Wed, 23 Nov 2022 11:06:18 -0500 Subject: [PATCH] uncomment prevote send --- consensus/reactor.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/consensus/reactor.go b/consensus/reactor.go index 165b48003..bf263f65a 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -817,14 +817,12 @@ func (conR *Reactor) gossipVotesForHeight( } */ // If there are prevotes to send... - /* - if prs.Step <= cstypes.RoundStepPrevoteWait && prs.Round != -1 && prs.Round <= rs.Round { - if ps.PickSendVote(rs.Votes.Prevotes(prs.Round)) { - logger.Debug("Picked rs.Prevotes(prs.Round) to send", "round", prs.Round) - return true - } + if prs.Step <= cstypes.RoundStepPrevoteWait && prs.Round != -1 && prs.Round <= rs.Round { + if ps.PickSendVote(rs.Votes.Prevotes(prs.Round)) { + logger.Debug("Picked rs.Prevotes(prs.Round) to send", "round", prs.Round) + return true } - */ + } // 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)) {