MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / UsageByPeer

Method UsageByPeer

src/node/txorphanage.cpp:285–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285TxOrphanage::Usage TxOrphanageImpl::UsageByPeer(NodeId peer) const
286{
287 auto it = m_peer_orphanage_info.find(peer);
288 return it == m_peer_orphanage_info.end() ? 0 : it->second.m_total_usage;
289}
290
291TxOrphanage::Count TxOrphanageImpl::CountAnnouncements() const { return m_orphans.size(); }
292

Callers 3

txorphan.cppFile · 0.80
FUZZ_TARGETFunction · 0.80
CheckIsEmptyMethod · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 1

FUZZ_TARGETFunction · 0.64