From 6bc016f3131633c43e0ac603e8e009e6347df44b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 19 Jan 2017 02:06:42 -0800 Subject: [PATCH] wallet: fix resend. --- lib/wallet/wallet.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/wallet/wallet.js b/lib/wallet/wallet.js index 97b50701..b112dced 100644 --- a/lib/wallet/wallet.js +++ b/lib/wallet/wallet.js @@ -1750,11 +1750,15 @@ Wallet.prototype.increaseFee = co(function* increaseFee(hash, rate, passphrase) */ Wallet.prototype.resend = co(function* resend() { - var txs = yield this.getPending(); + var wtxs = yield this.getPending(); + var txs = []; var i; - if (txs.length > 0) - this.logger.info('Rebroadcasting %d transactions.', txs.length); + if (wtxs.length > 0) + this.logger.info('Rebroadcasting %d transactions.', wtxs.length); + + for (i = 0; i < wtxs.length; i++) + txs.push(wtxs[i]); txs = common.sortTX(txs);