Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Commit 80ee7fc

Browse files
committed
fix multiple requests per block per peer
1 parent 2737fc7 commit 80ee7fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/replicator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ module.exports = class Replicator {
10541054
}
10551055

10561056
_queueBlock (b) {
1057-
if (b.queued === true) return
1057+
if (b.inflight.length > 0 || b.queued === true) return
10581058
b.queued = true
10591059
this._queued.push(b)
10601060
}

0 commit comments

Comments
 (0)