| 383 | return m_wallet.GetCredit(txout, filter); |
| 384 | } |
| 385 | CoinsList listCoins() override |
| 386 | { |
| 387 | LOCK2(::cs_main, m_wallet.cs_wallet); |
| 388 | CoinsList result; |
| 389 | for (const auto& entry : m_wallet.ListCoins()) { |
| 390 | auto& group = result[entry.first]; |
| 391 | for (const auto& coin : entry.second) { |
| 392 | group.emplace_back( |
| 393 | COutPoint(coin.tx->GetHash(), coin.i), MakeWalletTxOut(m_wallet, *coin.tx, coin.i, coin.nDepth)); |
| 394 | } |
| 395 | } |
| 396 | return result; |
| 397 | } |
| 398 | std::vector<WalletTxOut> getCoins(const std::vector<COutPoint>& outputs) override |
| 399 | { |
| 400 | LOCK2(::cs_main, m_wallet.cs_wallet); |
no test coverage detected