| 167 | return fees; |
| 168 | } |
| 169 | static 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 */ |
no outgoing calls
no test coverage detected