MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsSelectable

Method IsSelectable

src/txrequest.cpp:95–98  ·  view source on GitHub ↗

Whether this announcement can feasibly be selected if the current IsSelected() one disappears. */

Source from the content-addressed store, hash-verified

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,

Callers 3

GetWaitStateFunction · 0.80
SetTimePointMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected