MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsSelectable

Method IsSelectable

src/txrequest.cpp:90–93  ·  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

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,

Callers 3

GetWaitStateFunction · 0.45
SetTimePointMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected