minor fix for wallet.fill.

This commit is contained in:
Christopher Jeffrey 2015-12-05 04:18:21 -08:00
parent 916fca9c2f
commit 46a5ca7500

View File

@ -399,7 +399,7 @@ Wallet.prototype.fill = function fill(tx, cb) {
unspent.every(addInput, this);
// Add dummy output (for `left`) to calculate maximum TX size
tx.out(options.change || this, new bn(0));
tx.out(this, new bn(0));
// Change fee value if it is more than 1024 bytes
// (10000 satoshi for every 1024 bytes)