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