MCPcopy Create free account
hub / github.com/ElementsProject/elements / exists

Method exists

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

Source from the content-addressed store, hash-verified

809 }
810
811 bool exists(const GenTxid& gtxid) const
812 {
813 LOCK(cs);
814 if (gtxid.IsWtxid()) {
815 return (mapTx.get<index_by_wtxid>().count(gtxid.GetHash()) != 0);
816 }
817 return (mapTx.count(gtxid.GetHash()) != 0);
818 }
819
820 CTransactionRef get(const uint256& hash) const;
821 txiter get_iter_from_wtxid(const uint256& wtxid) const EXCLUSIVE_LOCKS_REQUIRED(cs)

Callers 15

report_cmdFunction · 0.45
update_cmdFunction · 0.45
run_testMethod · 0.45
mainFunction · 0.45
run_testMethod · 0.45
run_testMethod · 0.45
run_testMethod · 0.45
test_seed_peersMethod · 0.45
run_testMethod · 0.45

Calls 3

IsWtxidMethod · 0.80
countMethod · 0.80
GetHashMethod · 0.45

Tested by 2

mainFunction · 0.36
test_seed_peersMethod · 0.36