FindSpendableInputs: Add nDepth < 0 check.

Co-authored-by: Jack Grigg <jack@electriccoin.co>
This commit is contained in:
therealyingtong 2022-03-02 22:38:13 +08:00
parent 98cd4bab0b
commit 454c1eed46
1 changed files with 1 additions and 1 deletions

View File

@ -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