txdb: fix assert.
This commit is contained in:
parent
33bcc08656
commit
de690e4f22
@ -1470,13 +1470,6 @@ TXDB.prototype.disconnect = co(function* disconnect(tx) {
|
|||||||
|
|
||||||
credit = yield this.getCredit(hash, i);
|
credit = yield this.getCredit(hash, i);
|
||||||
|
|
||||||
assert(credit);
|
|
||||||
assert(!credit.spent);
|
|
||||||
|
|
||||||
// Neither of the spent cases below
|
|
||||||
// should ever happen, but account
|
|
||||||
// for them if some jackass is messing
|
|
||||||
// around with bcoin.
|
|
||||||
if (!credit) {
|
if (!credit) {
|
||||||
yield this.updateSpentCoin(tx, i);
|
yield this.updateSpentCoin(tx, i);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user