Whether this announcement can feasibly be selected if the current IsSelected() one disappears. */
| 88 | |
| 89 | /** Whether this announcement can feasibly be selected if the current IsSelected() one disappears. */ |
| 90 | bool IsSelectable() const |
| 91 | { |
| 92 | return GetState() == State::CANDIDATE_READY || GetState() == State::CANDIDATE_BEST; |
| 93 | } |
| 94 | |
| 95 | /** Construct a new announcement from scratch, initially in CANDIDATE_DELAYED state. */ |
| 96 | Announcement(const GenTxid& gtxid, NodeId peer, bool preferred, std::chrono::microseconds reqtime, |
no outgoing calls
no test coverage detected