Merge branch 'master' into wb/abci-prepare-proposal-synchronize

This commit is contained in:
William Banfield
2022-03-10 10:47:29 -05:00
committed by GitHub
7 changed files with 30 additions and 7 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ func (pool *BlockPool) removeTimedoutPeers() {
for _, peer := range pool.peers {
// check if peer timed out
if !peer.didTimeout && peer.numPending > 0 {
curRate := peer.recvMonitor.Status().CurRate
curRate := peer.recvMonitor.CurrentTransferRate()
// curRate can be 0 on start
if curRate != 0 && curRate < minRecvRate {
err := errors.New("peer is not sending us data fast enough")