block: fix miner assertion failure.
This commit is contained in:
parent
4c62cc8451
commit
7c73d2a898
@ -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;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user