Skip to content

Commit 5da81a9

Browse files
committed
fix(BlockStream): fix error when comaparing received block hash to request queue
1 parent 76f04f0 commit 5da81a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/blockStream.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ BlockStream.prototype._getData = function (block) {
8686

8787
BlockStream.prototype._requestIndex = function (hash) {
8888
for (var i = 0; i < this.requestQueue.length; i++) {
89+
if (this.requestQueue[i] === null) return false
8990
if (hash.compare(this.requestQueue[i]) === 0) return i
9091
}
9192
return false

0 commit comments

Comments
 (0)