diff --git a/lib/blockchain/chaindb.js b/lib/blockchain/chaindb.js index 6a248953..d510d22f 100644 --- a/lib/blockchain/chaindb.js +++ b/lib/blockchain/chaindb.js @@ -1747,7 +1747,7 @@ ChainDB.prototype.connectBlock = co(function* connectBlock(block, view) { */ ChainDB.prototype.disconnectBlock = co(function* disconnectBlock(block) { - var i, j, view, tx, hash, input, output; + var i, j, view, tx, input, output; if (this.options.spv) return; @@ -1758,7 +1758,6 @@ ChainDB.prototype.disconnectBlock = co(function* disconnectBlock(block) { for (i = block.txs.length - 1; i >= 0; i--) { tx = block.txs[i]; - hash = tx.hash('hex'); if (i > 0) { for (j = 0; j < tx.inputs.length; j++) {