MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / QueryHash

Method QueryHash

src/tx/txmempool.cpp:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void CTxMemPool::QueryHash(vector<uint256> &txids) {
82 LOCK(cs);
83
84 txids.clear();
85 txids.reserve(memPoolTxs.size());
86 for (typename map<uint256, CTxMemPoolEntry>::iterator mi = memPoolTxs.begin(); mi != memPoolTxs.end(); ++mi) {
87 txids.push_back((*mi).first);
88 }
89}
90
91bool CTxMemPool::CheckTxInMemPool(const uint256 &txid, const CTxMemPoolEntry &memPoolEntry, CValidationState &state, int32_t index,
92 bool bRehearsalExecute) {

Callers 2

ProcessMempoolMessageFunction · 0.80
getrawmempoolFunction · 0.80

Calls 6

reserveMethod · 0.80
push_backMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected