mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-25 02:31:46 +00:00
revert back curRate != 0
This commit is contained in:
@ -126,8 +126,8 @@ func (pool *BlockPool) removeTimedoutPeers() {
|
|||||||
for _, peer := range pool.peers {
|
for _, peer := range pool.peers {
|
||||||
if !peer.didTimeout && peer.numPending > 0 {
|
if !peer.didTimeout && peer.numPending > 0 {
|
||||||
curRate := peer.recvMonitor.Status().CurRate
|
curRate := peer.recvMonitor.Status().CurRate
|
||||||
// XXX remove curRate != 0
|
// curRate can be 0 on start
|
||||||
if curRate < minRecvRate {
|
if curRate != 0 && curRate < minRecvRate {
|
||||||
pool.sendTimeout(peer.id)
|
pool.sendTimeout(peer.id)
|
||||||
pool.Logger.Error("SendTimeout", "peer", peer.id,
|
pool.Logger.Error("SendTimeout", "peer", peer.id,
|
||||||
"reason", "peer is not sending us data fast enough",
|
"reason", "peer is not sending us data fast enough",
|
||||||
|
Reference in New Issue
Block a user