From 2493dbb98da0dfbfd223b8d122aa58fa50e2b683 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sun, 5 Nov 2017 09:36:29 -0300 Subject: [PATCH] restrict UTXO queries when sending a tx --- lib/server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index d6dcf95..22d719b 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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);