|
|
@ -743,11 +743,11 @@ WalletService.prototype.getBalance = function(opts, cb) { |
|
|
|
|
|
|
|
balance.byAddress = _.values(byAddress); |
|
|
|
|
|
|
|
self._computeBytesToSendMax(utxos, function(err, sizeInBytes) { |
|
|
|
self._computeBytesToSendMax(utxos, function(err, size) { |
|
|
|
if (err) { |
|
|
|
log.error('Could not compute fees needed to transfer max amount', err); |
|
|
|
} |
|
|
|
balance.totalBytesToSendMax = sizeInBytes || 0; |
|
|
|
balance.totalBytesToSendMax = size || 0; |
|
|
|
return cb(null, balance); |
|
|
|
}); |
|
|
|
}); |
|
|
|