diff --git a/lib/net/peer.js b/lib/net/peer.js index cc1b7a37..ff668bb2 100644 --- a/lib/net/peer.js +++ b/lib/net/peer.js @@ -2181,12 +2181,9 @@ Peer.prototype._handleCmpctBlock = co(function* _handleCmpctBlock(packet) { return; } - this.compactBlocks[hash] = block; - result = block.fillMempool(this.options.witness, this.mempool); if (result) { - delete this.compactBlocks[hash]; this.fire('block', block.toBlock()); this.logger.debug( 'Received full compact block %s (%s).', @@ -2194,6 +2191,8 @@ Peer.prototype._handleCmpctBlock = co(function* _handleCmpctBlock(packet) { return; } + this.compactBlocks[hash] = block; + yield this.send(new packets.GetBlockTxnPacket(block.toRequest())); this.logger.debug(