MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetImmatureCredit

Method GetImmatureCredit

src/wallet/wallet.cpp:1925–1937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1923}
1924
1925CAmount CWalletTx::GetImmatureCredit(bool fUseCache) const
1926{
1927 if (IsCoinBase() && GetBlocksToMaturity() > 0 && IsInMainChain())
1928 {
1929 if (fUseCache && fImmatureCreditCached)
1930 return nImmatureCreditCached;
1931 nImmatureCreditCached = pwallet->GetCredit(*tx, ISMINE_SPENDABLE);
1932 fImmatureCreditCached = true;
1933 return nImmatureCreditCached;
1934 }
1935
1936 return 0;
1937}
1938
1939CAmount CWalletTx::GetAvailableCredit(bool fUseCache, const isminefilter& filter) const
1940{

Callers 2

GetImmatureBalanceMethod · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 1

GetCreditMethod · 0.80

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64