txdb: failsafe for unconfirm.
This commit is contained in:
parent
0a1c0d1890
commit
977ef01d5a
@ -1345,6 +1345,9 @@ TXDB.prototype._unconfirm = co(function* unconfirm(hash) {
|
||||
if (!wtx)
|
||||
return;
|
||||
|
||||
if (wtx.height === -1)
|
||||
return;
|
||||
|
||||
return yield this.disconnect(wtx, wtx.getBlock());
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user