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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
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); |
|
|