diff --git a/lib/wallet/txdb.js b/lib/wallet/txdb.js index ff480d11..99eb7672 100644 --- a/lib/wallet/txdb.js +++ b/lib/wallet/txdb.js @@ -2165,21 +2165,12 @@ TXDB.prototype.zap = co(function* zap(account, age) { assert(now - tx.ps >= age); - this.start(); - this.logger.debug('Zapping TX: %s (%s)', hash, this.wallet.id); - try { - yield this._remove(hash); - } catch (e) { - this.drop(); - throw e; - } + yield this.remove(hash); hashes.push(hash); - - yield this.commit(); } return hashes;