From 4aadce752d9a5d84a18bd115b40201cc37647c24 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 12 Oct 2016 19:19:41 -0700 Subject: [PATCH] txdb: zap. --- lib/wallet/txdb.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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;