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

Method HaveTxFromPeer

src/node/txorphanage.cpp:585–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585bool TxOrphanageImpl::HaveTxFromPeer(const Wtxid& wtxid, NodeId peer) const
586{
587 return m_orphans.get<ByWtxid>().count(ByWtxidView{wtxid, peer}) > 0;
588}
589
590/** If there is a tx that can be reconsidered, return it and set it back to
591 * non-reconsiderable. Otherwise, return a nullptr. */

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.80
txorphan.cppFile · 0.80
FUZZ_TARGETFunction · 0.80

Calls 1

countMethod · 0.80

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64