| 2027 | } |
| 2028 | |
| 2029 | CAmount 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 | |
| 2042 | CAmount CWallet::GetWatchOnlyBalance() const |
| 2043 | { |
no test coverage detected