MCPcopy Create free account
hub / github.com/ElementsProject/elements / listCoins

Method listCoins

src/wallet/interfaces.cpp:429–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 return OutputGetCredit(*m_wallet, tx, out_index, filter);
428 }
429 CoinsList listCoins() override
430 {
431 LOCK(m_wallet->cs_wallet);
432 CoinsList result;
433 for (const auto& entry : ListCoins(*m_wallet)) {
434 auto& group = result[entry.first];
435 for (const auto& coin : entry.second) {
436 group.emplace_back(COutPoint(coin.tx->GetHash(), coin.i),
437 MakeWalletTxOut(*m_wallet, *coin.tx, coin.i, coin.nDepth));
438 }
439 }
440 return result;
441 }
442 std::vector<WalletTxOut> getCoins(const std::vector<COutPoint>& outputs) override
443 {
444 LOCK(m_wallet->cs_wallet);

Callers 1

updateViewMethod · 0.80

Calls 3

emplace_backMethod · 0.80
COutPointClass · 0.50
GetHashMethod · 0.45

Tested by

no test coverage detected