Browse Source

restrict UTXO queries when sending a tx

master^2
Matias Alejo Garcia 7 years ago
parent
commit
2493dbb98d
No known key found for this signature in database GPG Key ID: 2470DB551277AB3
  1. 5
      lib/server.js

5
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);

Loading…
Cancel
Save