MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CachedTxIsFromMe

Function CachedTxIsFromMe

src/wallet/receive.cpp:196–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196bool CachedTxIsFromMe(const CWallet& wallet, const CWalletTx& wtx)
197{
198 if (!wtx.m_cached_from_me.has_value()) {
199 wtx.m_cached_from_me = wallet.IsFromMe(*wtx.tx);
200 }
201 return wtx.m_cached_from_me.value();
202}
203
204// NOLINTNEXTLINE(misc-no-recursion)
205bool CachedTxIsTrusted(const CWallet& wallet, const CWalletTx& wtx, std::set<Txid>& trusted_parents)

Callers 4

AvailableCoinsFunction · 0.85
CachedTxIsTrustedFunction · 0.85
GetAddressBalancesFunction · 0.85
gettransactionFunction · 0.85

Calls 3

IsFromMeMethod · 0.80
has_valueMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected