| 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 | |
| 181 | enum class WaitState { |