Browse Source

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

restrict UTXO queries when sending a tx
master
Matias Alejo Garcia 7 years ago
committed by GitHub
parent
commit
bdc0ba9699
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      lib/server.js

5
lib/server.js

@ -2351,7 +2351,10 @@ WalletService.prototype.publishTx = function(opts, cb) {
} }
// Verify UTXOs are still available // 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); if (err) return cb(err);
var txpInputs = _.map(txp.inputs, utxoKey); var txpInputs = _.map(txp.inputs, utxoKey);

Loading…
Cancel
Save