Skip to content

Commit

Permalink
Explicitly retry queryMaj23Routine if rs.Votes == nil
Browse files Browse the repository at this point in the history
  • Loading branch information
james-chf authored and tzemanovic committed Jul 28, 2022
1 parent 29e5fbc commit 3b7f2c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/consensus/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,11 @@ func (r *Reactor) queryMaj23Routine(ctx context.Context, ps *PeerState, stateCh
rs := r.getRoundState()
prs := ps.GetRoundState()

if rs.Votes == nil {
r.logger.Debug("rs.Votes has not yet been initialized, will retry queryMaj23Routine")
continue
}

wg := &sync.WaitGroup{}

if rs.Height == prs.Height {
Expand Down

0 comments on commit 3b7f2c7

Please sign in to comment.