aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/receive.h
diff options
context:
space:
mode:
authorAntoine Poinsot <darosior@protonmail.com>2022-07-07 14:06:27 +0200
committerAntoine Poinsot <darosior@protonmail.com>2022-08-16 18:33:05 +0200
commit0fd2d144540b720626fc065a3cef5188831b5ee2 (patch)
tree59dd67fd3cf748fbd829cad0421f0192cce12b29 /src/wallet/receive.h
parent55f98d087efd2609d808c082d5770306cc489409 (diff)
downloadbitcoin-0fd2d144540b720626fc065a3cef5188831b5ee2.tar.xz
rpc: add an include_change parameter to listsinceblock
It's useful for an external application tracking coins to not be limited by our change detection. For instance, for a watchonly wallet with two descriptors a transaction from one to the other would be considered a change output and not be included in the result (if the address was not generated by this wallet).
Diffstat (limited to 'src/wallet/receive.h')
-rw-r--r--src/wallet/receive.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/receive.h b/src/wallet/receive.h
index 1caef293f2..36759059b8 100644
--- a/src/wallet/receive.h
+++ b/src/wallet/receive.h
@@ -44,7 +44,8 @@ struct COutputEntry
void CachedTxGetAmounts(const CWallet& wallet, const CWalletTx& wtx,
std::list<COutputEntry>& listReceived,
std::list<COutputEntry>& listSent,
- CAmount& nFee, const isminefilter& filter);
+ CAmount& nFee, const isminefilter& filter,
+ bool include_change);
bool CachedTxIsFromMe(const CWallet& wallet, const CWalletTx& wtx, const isminefilter& filter);
bool CachedTxIsTrusted(const CWallet& wallet, const CWalletTx& wtx, std::set<uint256>& trusted_parents) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet);
bool CachedTxIsTrusted(const CWallet& wallet, const CWalletTx& wtx);