Browse Source

oops

pull/8149/head
tycho garen 2 years ago
parent
commit
a13788aab0
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      internal/consensus/reactor.go
  2. +1
    -1
      internal/consensus/state.go

+ 1
- 0
internal/consensus/reactor.go View File

@ -349,6 +349,7 @@ func (r *Reactor) broadcastHasVoteMessage(ctx context.Context, vote *types.Vote)
// upon receiving.
func (r *Reactor) subscribeToBroadcastEvents() {
onStopCh := r.state.getOnStopCh()
err := r.state.evsw.AddListenerForEvent(
listenerIDConsensus,
types.EventNewRoundStepValue,


+ 1
- 1
internal/consensus/state.go View File

@ -497,7 +497,7 @@ func (cs *State) getOnStopCh() chan *cstypes.RoundState {
cs.mtx.RLock()
defer cs.mtx.RUnlock()
return r.state.onStopCh
return cs.onStopCh
}
// OnStop implements service.Service.


Loading…
Cancel
Save