| 149 | { |
| 150 | using result_type = ByPeerView; |
| 151 | result_type operator()(const Announcement& ann) const |
| 152 | { |
| 153 | return ByPeerView{ann.m_peer, ann.GetState() == State::CANDIDATE_BEST, ann.m_txhash}; |
| 154 | } |
| 155 | }; |
| 156 | |
| 157 | // The ByTxHash index is sorted by (txhash, state, priority). |