block: fix miner assertion failure.

This commit is contained in:
Christopher Jeffrey 2016-08-17 22:23:44 -07:00
parent 4c62cc8451
commit 7c73d2a898
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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