| 2155 | } |
| 2156 | |
| 2157 | CAmount CWallet::GetUnconfirmedWatchOnlyBalance() const |
| 2158 | { |
| 2159 | CAmount nTotal = 0; |
| 2160 | { |
| 2161 | LOCK2(cs_main, cs_wallet); |
| 2162 | for (const auto& entry : mapWallet) |
| 2163 | { |
| 2164 | const CWalletTx* pcoin = &entry.second; |
| 2165 | if (!pcoin->IsTrusted() && pcoin->GetDepthInMainChain() == 0 && pcoin->InMempool()) |
| 2166 | nTotal += pcoin->GetAvailableCredit(true, ISMINE_WATCH_ONLY); |
| 2167 | } |
| 2168 | } |
| 2169 | return nTotal; |
| 2170 | } |
| 2171 | |
| 2172 | CAmount CWallet::GetImmatureWatchOnlyBalance() const |
| 2173 | { |
no test coverage detected