MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetImmatureBalance

Method GetImmatureBalance

src/wallet.cpp:2029–2040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2027}
2028
2029CAmount CWallet::GetImmatureBalance() const
2030{
2031 CAmount nTotal = 0;
2032 {
2033 //LOCK2(cs_main, cs_wallet);
2034 for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it) {
2035 const CWalletTx* pcoin = &(*it).second;
2036 nTotal += pcoin->GetImmatureCredit();
2037 }
2038 }
2039 return nTotal;
2040}
2041
2042CAmount CWallet::GetWatchOnlyBalance() const
2043{

Callers 2

getwalletinfoFunction · 0.80
getImmatureBalanceMethod · 0.80

Calls 3

GetImmatureCreditMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected