diff --git a/lib/net/bip152.js b/lib/net/bip152.js index a08f04fa..ea34c784 100644 --- a/lib/net/bip152.js +++ b/lib/net/bip152.js @@ -216,6 +216,9 @@ CompactBlock.prototype.fillMempool = function fillMempool(witness, mempool) { var hashes = mempool.getSnapshot(); var i, id, index, hash, tx; + if (this.count === this.totalTX) + return true; + for (i = 0; i < hashes.length; i++) { hash = hashes[i]; tx = mempool.getTX(hash);