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

Method HasTx

src/persistence/txdb.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35bool CTxMemCache::HasTx(const uint256 &txid) {
36 auto it = txids.find(txid);
37 if (it != txids.end()) {
38 return it->second;
39 }
40
41 if (pBase != nullptr) {
42 return pBase->HasTx(txid);
43 }
44 return false;
45}
46
47void CTxMemCache::BatchWrite(const TxIdMap &txidsIn) {
48 for (const auto &item : txidsIn) {

Callers 3

ConnectBlockFunction · 0.45
GetPriorityTxFunction · 0.45
CheckTxInMemPoolMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected