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

Method operator()

src/txrequest.cpp:174–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 explicit ByTxHashViewExtractor(const PriorityComputer& computer) : m_computer(computer) {}
173 using result_type = ByTxHashView;
174 result_type operator()(const Announcement& ann) const
175 {
176 const Priority prio = (ann.GetState() == State::CANDIDATE_READY) ? m_computer(ann) : 0;
177 return ByTxHashView{ann.m_txhash, ann.GetState(), prio};
178 }
179};
180
181enum class WaitState {

Callers

nothing calls this directly

Calls 1

GetStateMethod · 0.80

Tested by

no test coverage detected