We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c646f commit 212ccdfCopy full SHA for 212ccdf
src/wallet/spend.cpp
@@ -275,7 +275,7 @@ CoinsResult AvailableCoins(const CWallet& wallet,
275
if (coinControl && coinControl->HasSelected() && coinControl->IsSelected(outpoint))
276
continue;
277
278
- if (wallet.IsLockedCoin(outpoint))
+ if (wallet.IsLockedCoin(outpoint) && params.skip_locked)
279
280
281
if (wallet.IsSpent(outpoint))
src/wallet/spend.h
@@ -68,6 +68,8 @@ struct CoinFilterParams {
68
bool only_spendable{true};
69
// By default, do not include immature coinbase outputs
70
bool include_immature_coinbase{false};
71
+ // By default, skip locked UTXOs
72
+ bool skip_locked{true};
73
};
74
75
/**
0 commit comments