|
@ -584,8 +584,8 @@ WalletService.prototype._getUtxos = function(cb) { |
|
|
log.error('Could not fetch unspent outputs', err); |
|
|
log.error('Could not fetch unspent outputs', err); |
|
|
return cb(new ClientError('BLOCKCHAINERROR', 'Could not fetch unspent outputs')); |
|
|
return cb(new ClientError('BLOCKCHAINERROR', 'Could not fetch unspent outputs')); |
|
|
} |
|
|
} |
|
|
var utxos = _.map(inutxos, function(i) { |
|
|
var utxos = _.map(inutxos, function(utxo) { |
|
|
return _.pick(i.toObject(), ['txid', 'vout', 'address', 'scriptPubKey', 'amount', 'satoshis']); |
|
|
return _.pick(utxo, ['txid', 'vout', 'address', 'scriptPubKey', 'amount', 'satoshis']); |
|
|
}); |
|
|
}); |
|
|
self.getPendingTxs({}, function(err, txps) { |
|
|
self.getPendingTxs({}, function(err, txps) { |
|
|
if (err) return cb(err); |
|
|
if (err) return cb(err); |
|
|