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

Method SetState

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

Convert a State enum to a uint8_t and store it in m_state. */

Source from the content-addressed store, hash-verified

78
79 /** Convert a State enum to a uint8_t and store it in m_state. */
80 void SetState(State state) { m_state = static_cast<uint8_t>(state); }
81
82 /** Whether this announcement is selected. There can be at most 1 selected peer per txhash. */
83 bool IsSelected() const

Callers 3

PromoteCandidateReadyMethod · 0.80
ChangeAndReselectMethod · 0.80
RequestedTxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected