Browse Source

remove curRate != 0

pull/1194/head
Anton Kaliaev 6 years ago
parent
commit
c8990d06d9
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      blockchain/pool.go

+ 1
- 1
blockchain/pool.go View File

@ -127,7 +127,7 @@ func (pool *BlockPool) removeTimedoutPeers() {
if !peer.didTimeout && peer.numPending > 0 {
curRate := peer.recvMonitor.Status().CurRate
// XXX remove curRate != 0
if curRate != 0 && curRate < minRecvRate {
if curRate < minRecvRate {
pool.sendTimeout(peer.id)
pool.Logger.Error("SendTimeout", "peer", peer.id,
"reason", "peer is not sending us data fast enough",


Loading…
Cancel
Save