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

Method ForgetTxHash

src/txrequest.cpp:568–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566 }
567
568 void ForgetTxHash(const uint256& txhash)
569 {
570 auto it = m_index.get<ByTxHash>().lower_bound(ByTxHashView{txhash, State::CANDIDATE_DELAYED, 0});
571 while (it != m_index.get<ByTxHash>().end() && it->m_txhash == txhash) {
572 it = Erase<ByTxHash>(it);
573 }
574 }
575
576 void ReceivedInv(NodeId peer, const GenTxid& gtxid, bool preferred,
577 std::chrono::microseconds reqtime)

Callers

nothing calls this directly

Calls 2

lower_boundMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected