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

Method HaveTx

src/node/txorphanage.cpp:572–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572bool TxOrphanageImpl::HaveTx(const Wtxid& wtxid) const
573{
574 auto it_lower = m_orphans.get<ByWtxid>().lower_bound(ByWtxidView{wtxid, MIN_PEER});
575 return it_lower != m_orphans.get<ByWtxid>().end() && it_lower->m_tx->GetWitnessHash() == wtxid;
576}
577
578CTransactionRef TxOrphanageImpl::GetTx(const Wtxid& wtxid) const
579{

Callers 9

BOOST_AUTO_TEST_CASEFunction · 0.80
CheckOrphanBehaviorFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
txdownloadman.cppFile · 0.80
txorphan.cppFile · 0.80
FUZZ_TARGETFunction · 0.80
OrphanageEraseAllFunction · 0.80
AlreadyHaveTxMethod · 0.80
MempoolRejectedTxMethod · 0.80

Calls 2

lower_boundMethod · 0.80
endMethod · 0.45

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.64
CheckOrphanBehaviorFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64