aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/spend.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-07-28 10:25:29 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-10-29 08:45:12 -0300
commitf0f6a3577bef2e9ebd084fe35850e4e9580128a9 (patch)
tree78a0f7490a89aaebfca43e63ced8fa82c2aeae92 /src/wallet/spend.h
parent4f270d2b63913b86c4366756031c5003837075d6 (diff)
downloadbitcoin-f0f6a3577bef2e9ebd084fe35850e4e9580128a9.tar.xz
RPC: listunspent, add "include immature coinbase" flag
so we can return the immature coinbase UTXOs as well.
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r--src/wallet/spend.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h
index b66bb3797c..1d4570dcbb 100644
--- a/src/wallet/spend.h
+++ b/src/wallet/spend.h
@@ -65,13 +65,14 @@ CoinsResult AvailableCoins(const CWallet& wallet,
const CAmount& nMaximumAmount = MAX_MONEY,
const CAmount& nMinimumSumAmount = MAX_MONEY,
const uint64_t nMaximumCount = 0,
- bool only_spendable = true) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet);
+ bool only_spendable = true,
+ bool include_immature_coinbase = false) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet);
/**
* Wrapper function for AvailableCoins which skips the `feerate` parameter. Use this function
* to list all available coins (e.g. listunspent RPC) while not intending to fund a transaction.
*/
-CoinsResult AvailableCoinsListUnspent(const CWallet& wallet, const CCoinControl* coinControl = nullptr, const CAmount& nMinimumAmount = 1, const CAmount& nMaximumAmount = MAX_MONEY, const CAmount& nMinimumSumAmount = MAX_MONEY, const uint64_t nMaximumCount = 0) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet);
+CoinsResult AvailableCoinsListUnspent(const CWallet& wallet, const CCoinControl* coinControl = nullptr, const CAmount& nMinimumAmount = 1, const CAmount& nMaximumAmount = MAX_MONEY, const CAmount& nMinimumSumAmount = MAX_MONEY, const uint64_t nMaximumCount = 0, bool include_immature_coinbase = false) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet);
CAmount GetAvailableBalance(const CWallet& wallet, const CCoinControl* coinControl = nullptr);