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

Method GetIter

src/txmempool.cpp:695–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695std::optional<CTxMemPool::txiter> CTxMemPool::GetIter(const Txid& txid) const
696{
697 AssertLockHeld(cs);
698 auto it = mapTx.find(txid);
699 return it != mapTx.end() ? std::make_optional(it) : std::nullopt;
700}
701
702std::optional<CTxMemPool::txiter> CTxMemPool::GetIter(const Wtxid& wtxid) const
703{

Callers 13

ProcessDependenciesMethod · 0.80
PreChecksMethod · 0.80
SubmitPackageMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
rbf_tests.cppFile · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
TestBasicMiningMethod · 0.80
rbf.cppFile · 0.80
getmempooldescendantsFunction · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
TestBasicMiningMethod · 0.64