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

Function route_delay

plugins/renepay/route.h:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 return fees;
168}
169static inline u32 route_delay(const struct route *route)
170{
171 assert(route);
172 assert(route->hops);
173 if (tal_count(route->hops) == 0)
174 return 0;
175 const size_t pathlen = tal_count(route->hops);
176 assert(route->hops[0].delay >= route->hops[pathlen - 1].delay);
177 return route->hops[0].delay - route->hops[pathlen - 1].delay;
178}
179
180#endif /* LIGHTNING_PLUGINS_RENEPAY_ROUTE_H */

Callers 2

get_routesFunction · 0.85
waitblockheight_doneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected