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

Function GetWaitState

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

Source from the content-addressed store, hash-verified

188};
189
190WaitState GetWaitState(const Announcement& ann)
191{
192 if (ann.IsWaiting()) return WaitState::FUTURE_EVENT;
193 if (ann.IsSelectable()) return WaitState::PAST_EVENT;
194 return WaitState::NO_EVENT;
195}
196
197// The ByTime index is sorted by (wait_state, time).
198//

Callers 1

operator()Method · 0.85

Calls 2

IsWaitingMethod · 0.80
IsSelectableMethod · 0.80

Tested by

no test coverage detected