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

Method GetImmatureBalance

src/wallet/wallet.cpp:2143–2155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2141}
2142
2143CAmount CWallet::GetImmatureBalance() const
2144{
2145 CAmount nTotal = 0;
2146 {
2147 LOCK2(cs_main, cs_wallet);
2148 for (const auto& entry : mapWallet)
2149 {
2150 const CWalletTx* pcoin = &entry.second;
2151 nTotal += pcoin->GetImmatureCredit();
2152 }
2153 }
2154 return nTotal;
2155}
2156
2157CAmount CWallet::GetUnconfirmedWatchOnlyBalance() const
2158{

Callers 3

getwalletinfoFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
getBalancesMethod · 0.80

Calls 1

GetImmatureCreditMethod · 0.80

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64