wallet: fix resend.

This commit is contained in:
Christopher Jeffrey 2017-02-02 16:54:15 -08:00
parent 9650d8adae
commit 69b442a318
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1762,13 +1762,15 @@ Wallet.prototype.increaseFee = co(function* increaseFee(hash, rate, passphrase)
Wallet.prototype.resend = co(function* resend() {
var wtxs = yield this.getPending();
var txs = [];
var i;
var i, wtx;
if (wtxs.length > 0)
this.logger.info('Rebroadcasting %d transactions.', wtxs.length);
for (i = 0; i < wtxs.length; i++)
txs.push(wtxs[i]);
for (i = 0; i < wtxs.length; i++) {
wtx = wtxs[i];
txs.push(wtx.tx);
}
txs = common.sortTX(txs);