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

Function update_first

ccan/ccan/timer/timer.c:270–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270static bool update_first(struct timers *timers)
271{
272 const struct timer *found = get_first(timers);
273
274 if (!found) {
275 timers->first = -1ULL;
276 return false;
277 }
278
279 timers->first = found->time;
280 return true;
281}
282
283bool timer_earliest(struct timers *timers, struct timemono *first)
284{

Callers 2

timer_earliestFunction · 0.85
timers_expireFunction · 0.85

Calls 1

get_firstFunction · 0.85

Tested by

no test coverage detected