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

Method GetDenominatedBalance

src/wallet.cpp:1963–1977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1961}
1962
1963CAmount CWallet::GetDenominatedBalance(bool unconfirmed) const
1964{
1965 if (!fEnableDarksend) return 0; // if we have disabled darksend, don't bother calculating anonymized funds in the balances
1966 CAmount nTotal = 0;
1967 {
1968 LOCK2(cs_main, cs_wallet);
1969 for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it) {
1970 const CWalletTx* pcoin = &(*it).second;
1971
1972 nTotal += pcoin->GetDenominatedCredit(unconfirmed);
1973 }
1974 }
1975
1976 return nTotal;
1977}
1978
1979CAmount CWallet::GetDenominatedBalance(bool onlyDenom, bool onlyUnconfirmed) const
1980{

Callers 3

Calls 10

IsFinalTxFunction · 0.85
IsMineFunction · 0.85
GetDenominatedCreditMethod · 0.80
IsTrustedMethod · 0.80
COutputClass · 0.70
beginMethod · 0.45
endMethod · 0.45
GetDepthInMainChainMethod · 0.45
sizeMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected