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

Function GetWaitState

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

Source from the content-addressed store, hash-verified

182};
183
184WaitState GetWaitState(const Announcement& ann)
185{
186 if (ann.IsWaiting()) return WaitState::FUTURE_EVENT;
187 if (ann.IsSelectable()) return WaitState::PAST_EVENT;
188 return WaitState::NO_EVENT;
189}
190
191// The ByTime index is sorted by (wait_state, time).
192//

Callers 1

operator()Method · 0.85

Calls 2

IsWaitingMethod · 0.80
IsSelectableMethod · 0.45

Tested by

no test coverage detected