bip152: fix empty block filling.

This commit is contained in:
Christopher Jeffrey 2017-01-13 15:27:13 -08:00
parent daaa1c5fa5
commit b77b814be4
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);