mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 06:15:33 +00:00
broadcast on newStepCh on switch to consensus reactor
This commit is contained in:
@@ -203,7 +203,7 @@ FOR_LOOP:
|
||||
maxPending := bcR.pool.numPending == maxPendingRequests
|
||||
maxPeerless := bcR.pool.peerless == bcR.pool.numPending
|
||||
o, i, _ := bcR.sw.NumPeers()
|
||||
enoughPeers := o+i > 5
|
||||
enoughPeers := o+i >= 5
|
||||
if maxPending && maxPeerless && enoughPeers {
|
||||
log.Warn("Time to switch to consensus reactor!", "height", bcR.pool.height)
|
||||
bcR.pool.Stop()
|
||||
|
||||
Reference in New Issue
Block a user