MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / get

Method get

src/txmempool.cpp:811–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809}
810
811CTransactionRef CTxMemPool::get(const uint256& hash) const
812{
813 LOCK(cs);
814 indexed_transaction_set::const_iterator i = mapTx.find(hash);
815 if (i == mapTx.end())
816 return nullptr;
817 return i->GetSharedTx();
818}
819
820TxMempoolInfo CTxMemPool::info(const uint256& hash) const
821{

Callers 15

postprocess_translationsFunction · 0.80
wait_for_addrMethod · 0.80
last_block_equalsMethod · 0.80
last_header_equalsMethod · 0.80
node_testMethod · 0.80
do_multisigMethod · 0.80
wait_for_blockMethod · 0.80
test_functionMethod · 0.80
wait_for_getdataMethod · 0.80
wait_for_getheadersMethod · 0.80

Calls 3

GetSharedTxMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by 13

test_functionMethod · 0.64
TestBlockValidityFunction · 0.64
ListCoinsTestingSetupMethod · 0.64
add_coinFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
Correct_Queue_rangeFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
TestingSetupMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64