restrict UTXO queries when sending a tx
This commit is contained in:
parent
a7cd4e6171
commit
2493dbb98d
|
@ -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…
Reference in New Issue