| 2141 | } |
| 2142 | |
| 2143 | CAmount 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 | |
| 2157 | CAmount CWallet::GetUnconfirmedWatchOnlyBalance() const |
| 2158 | { |