txdb: fix assert.

This commit is contained in:
Christopher Jeffrey 2016-10-19 15:20:59 -07:00
parent 33bcc08656
commit de690e4f22
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1470,13 +1470,6 @@ TXDB.prototype.disconnect = co(function* disconnect(tx) {
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) {
yield this.updateSpentCoin(tx, i);
continue;