bip152: fix empty block filling.
This commit is contained in:
parent
daaa1c5fa5
commit
b77b814be4
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user