| 1961 | } |
| 1962 | |
| 1963 | CAmount 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 | |
| 1979 | CAmount CWallet::GetDenominatedBalance(bool onlyDenom, bool onlyUnconfirmed) const |
| 1980 | { |
no test coverage detected