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

Method IsSelected

src/txrequest.cpp:83–86  ·  view source on GitHub ↗

Whether this announcement is selected. There can be at most 1 selected peer per txhash. */

Source from the content-addressed store, hash-verified

81
82 /** Whether this announcement is selected. There can be at most 1 selected peer per txhash. */
83 bool IsSelected() const
84 {
85 return GetState() == State::CANDIDATE_BEST || GetState() == State::REQUESTED;
86 }
87
88 /** Whether this announcement is waiting for a certain time to pass. */
89 bool IsWaiting() const

Callers 1

ChangeAndReselectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected