diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-07-28 10:25:29 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-10-29 08:45:12 -0300 |
commit | f0f6a3577bef2e9ebd084fe35850e4e9580128a9 (patch) | |
tree | 78a0f7490a89aaebfca43e63ced8fa82c2aeae92 /src/wallet/spend.h | |
parent | 4f270d2b63913b86c4366756031c5003837075d6 (diff) | |
download | bitcoin-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.h | 5 |
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); |