Merge pull request #723 from matiu/bug/utxo-query

restrict UTXO queries when sending a tx
This commit is contained in:
Matias Alejo Garcia 2017-11-05 09:43:37 -03:00 committed by GitHub
commit bdc0ba9699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);