Browse Source

Merge pull request #1970 from tendermint/bucky/consensus-stop-wait

consensus: wait on stop if not fastsync
pull/1975/head
Ethan Buchman 6 years ago
committed by GitHub
parent
commit
a163f08e4e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      consensus/reactor.go

+ 3
- 0
consensus/reactor.go View File

@ -80,6 +80,9 @@ func (conR *ConsensusReactor) OnStop() {
conR.BaseReactor.OnStop()
conR.unsubscribeFromBroadcastEvents()
conR.conS.Stop()
if !conR.FastSync() {
conR.conS.Wait()
}
}
// SwitchToConsensus switches from fast_sync mode to consensus mode.


Loading…
Cancel
Save