MCPcopy Create free account
hub / github.com/ElementsProject/lightning / update_first

Function update_first

ccan/ccan/timer/timer.c:278–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278static bool update_first(struct timers *timers)
279{
280 const struct timer *found = get_first(timers);
281
282 if (!found) {
283 timers->first = -1ULL;
284 return false;
285 }
286
287 timers->first = found->time;
288 return true;
289}
290
291bool timer_earliest(struct timers *timers, struct timemono *first)
292{

Callers 2

timer_earliestFunction · 0.85
timers_expireFunction · 0.85

Calls 1

get_firstFunction · 0.85

Tested by

no test coverage detected