restrict UTXO queries when sending a tx

This commit is contained in:
Matias Alejo Garcia 2017-11-05 09:36:29 -03:00
parent a7cd4e6171
commit 2493dbb98d
No known key found for this signature in database
GPG Key ID: 02470DB551277AB3
1 changed files with 4 additions and 1 deletions

View File

@ -2351,7 +2351,10 @@ WalletService.prototype.publishTx = function(opts, cb) {
}
// Verify UTXOs are still available
self._getUtxosForCurrentWallet({}, function(err, utxos) {
self._getUtxosForCurrentWallet({
addresses: txp.inputs,
coin: txp.coin,
}, function(err, utxos) {
if (err) return cb(err);
var txpInputs = _.map(txp.inputs, utxoKey);