From 7bfe5cfd08d2ad272933477c9d2e50c43b7d7ec2 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 28 Feb 2017 13:15:37 -0800 Subject: [PATCH] mempool: return missing txs again. --- lib/mempool/mempool.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/mempool/mempool.js b/lib/mempool/mempool.js index 0e0cd0c6..17567770 100644 --- a/lib/mempool/mempool.js +++ b/lib/mempool/mempool.js @@ -666,10 +666,10 @@ Mempool.prototype.addTX = co(function* addTX(tx) { */ Mempool.prototype._addTX = co(function* _addTX(tx) { - var result; + var missing; try { - result = yield this.insertTX(tx); + missing = yield this.insertTX(tx); } catch (err) { if (err.type === 'VerifyError') { if (!tx.hasWitness() && !err.malleated) @@ -682,6 +682,8 @@ Mempool.prototype._addTX = co(function* _addTX(tx) { yield this.cache.flush(); this.lastUpdate = util.now(); } + + return missing; }); /**