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