FindSpendableInputs: Add nDepth < 0 check.
Co-authored-by: Jack Grigg <jack@electriccoin.co>
This commit is contained in:
parent
98cd4bab0b
commit
454c1eed46
|
@ -1749,7 +1749,7 @@ SpendableInputs CWallet::FindSpendableInputs(
|
|||
|
||||
// Filter the transactions before checking for coins
|
||||
if (!CheckFinalTx(wtx)) continue;
|
||||
if (nDepth < minDepth) continue;
|
||||
if (nDepth < 0 || nDepth < minDepth) continue;
|
||||
|
||||
if (selectTransparent &&
|
||||
// skip transparent utxo selection if coinbase spend restrictions are not met
|
||||
|
|
Loading…
Reference in New Issue