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

Method Remove

src/tx/txmempool.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void CTxMemPool::Remove(CBaseTx *pBaseTx, list<std::shared_ptr<CBaseTx> > &removed, bool fRecursive) {
48 // Remove transaction from memory pool
49 LOCK(cs);
50 uint256 txid = pBaseTx->GetHash();
51 if (memPoolTxs.count(txid)) {
52 removed.push_front(std::shared_ptr<CBaseTx>(memPoolTxs[txid].GetTransaction()));
53 memPoolTxs.erase(txid);
54 EraseTransactionFromWallet(txid);
55 }
56}
57
58void CTxMemPool::Remove(const uint256 &txid) {
59 LOCK(cs);

Callers 2

DisconnectTipFunction · 0.45
droptxfrommempoolFunction · 0.45

Calls 7

GetTransactionMethod · 0.80
GetHashMethod · 0.45
countMethod · 0.45
eraseMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected