MCPcopy Create free account
hub / github.com/ElementsProject/elements / CachedTxGetImmatureWatchOnlyCredit

Function CachedTxGetImmatureWatchOnlyCredit

src/wallet/receive.cpp:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207CAmountMap CachedTxGetImmatureWatchOnlyCredit(const CWallet& wallet, const CWalletTx& wtx, const bool fUseCache)
208{
209 if (wallet.IsTxImmatureCoinBase(wtx) && wallet.IsTxInMainChain(wtx)) {
210 return GetCachableAmount(wallet, wtx, CWalletTx::IMMATURE_CREDIT, ISMINE_WATCH_ONLY, !fUseCache);
211 }
212
213 return CAmountMap();
214}
215
216CAmountMap CachedTxGetAvailableCredit(const CWallet& wallet, const CWalletTx& wtx, bool fUseCache, const isminefilter& filter)
217{

Callers 1

GetBalanceFunction · 0.85

Calls 3

GetCachableAmountFunction · 0.85
IsTxImmatureCoinBaseMethod · 0.80
IsTxInMainChainMethod · 0.80

Tested by

no test coverage detected