wallet: fix resend.
This commit is contained in:
parent
9650d8adae
commit
69b442a318
@ -1762,13 +1762,15 @@ Wallet.prototype.increaseFee = co(function* increaseFee(hash, rate, passphrase)
|
|||||||
Wallet.prototype.resend = co(function* resend() {
|
Wallet.prototype.resend = co(function* resend() {
|
||||||
var wtxs = yield this.getPending();
|
var wtxs = yield this.getPending();
|
||||||
var txs = [];
|
var txs = [];
|
||||||
var i;
|
var i, wtx;
|
||||||
|
|
||||||
if (wtxs.length > 0)
|
if (wtxs.length > 0)
|
||||||
this.logger.info('Rebroadcasting %d transactions.', wtxs.length);
|
this.logger.info('Rebroadcasting %d transactions.', wtxs.length);
|
||||||
|
|
||||||
for (i = 0; i < wtxs.length; i++)
|
for (i = 0; i < wtxs.length; i++) {
|
||||||
txs.push(wtxs[i]);
|
wtx = wtxs[i];
|
||||||
|
txs.push(wtx.tx);
|
||||||
|
}
|
||||||
|
|
||||||
txs = common.sortTX(txs);
|
txs = common.sortTX(txs);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user