MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / operator()

Method operator()

src/txrequest.cpp:168–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 explicit ByTxHashViewExtractor(const PriorityComputer& computer) : m_computer(computer) {}
167 using result_type = ByTxHashView;
168 result_type operator()(const Announcement& ann) const
169 {
170 const Priority prio = (ann.GetState() == State::CANDIDATE_READY) ? m_computer(ann) : 0;
171 return ByTxHashView{ann.m_gtxid.ToUint256(), ann.GetState(), prio};
172 }
173};
174
175enum class WaitState {

Callers

nothing calls this directly

Calls 1

GetStateMethod · 0.45

Tested by

no test coverage detected