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