chaindb: drop useless.
This commit is contained in:
parent
ded3bc34f3
commit
430a69e3d3
@ -1747,7 +1747,7 @@ ChainDB.prototype.connectBlock = co(function* connectBlock(block, view) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
ChainDB.prototype.disconnectBlock = co(function* disconnectBlock(block) {
|
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)
|
if (this.options.spv)
|
||||||
return;
|
return;
|
||||||
@ -1758,7 +1758,6 @@ ChainDB.prototype.disconnectBlock = co(function* disconnectBlock(block) {
|
|||||||
|
|
||||||
for (i = block.txs.length - 1; i >= 0; i--) {
|
for (i = block.txs.length - 1; i >= 0; i--) {
|
||||||
tx = block.txs[i];
|
tx = block.txs[i];
|
||||||
hash = tx.hash('hex');
|
|
||||||
|
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
for (j = 0; j < tx.inputs.length; j++) {
|
for (j = 0; j < tx.inputs.length; j++) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user