From 7c73d2a898d00f438b7c995989cbad727da91e56 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 17 Aug 2016 22:23:44 -0700 Subject: [PATCH] block: fix miner assertion failure. --- lib/bcoin/block.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/bcoin/block.js b/lib/bcoin/block.js index 97aaa4f6..5157dbb5 100644 --- a/lib/bcoin/block.js +++ b/lib/bcoin/block.js @@ -236,9 +236,7 @@ Block.prototype.hasWitness = function hasWitness() { */ Block.prototype.addTX = function addTX(tx) { - var index; - assert(!tx.mutable, 'Cannot add mutable TX to block.'); - index = this.txs.push(tx) - 1; + var index = this.txs.push(tx) - 1; tx.setBlock(this, index); return index; };