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

Function CachedTxGetImmatureCredit

src/wallet/receive.cpp:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198CAmountMap CachedTxGetImmatureCredit(const CWallet& wallet, const CWalletTx& wtx, bool fUseCache)
199{
200 if (wallet.IsTxImmatureCoinBase(wtx) && wallet.IsTxInMainChain(wtx)) {
201 return GetCachableAmount(wallet, wtx, CWalletTx::IMMATURE_CREDIT, ISMINE_SPENDABLE, !fUseCache);
202 }
203
204 return CAmountMap();
205}
206
207CAmountMap CachedTxGetImmatureWatchOnlyCredit(const CWallet& wallet, const CWalletTx& wtx, const bool fUseCache)
208{

Callers 2

GetBalanceFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85

Calls 3

GetCachableAmountFunction · 0.85
IsTxImmatureCoinBaseMethod · 0.80
IsTxInMainChainMethod · 0.80

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.68