| 9 | #include <plugins/renepay/routetracker.h> |
| 10 | |
| 11 | static struct payment *route_get_payment_verify(struct route *route) |
| 12 | { |
| 13 | struct payment *payment = |
| 14 | payment_map_get(pay_plugin->payment_map, route->key.payment_hash); |
| 15 | if (!payment) |
| 16 | plugin_err(pay_plugin->plugin, |
| 17 | "%s: no payment associated with routekey %s", |
| 18 | __func__, |
| 19 | fmt_routekey(tmpctx, &route->key)); |
| 20 | return payment; |
| 21 | } |
| 22 | |
| 23 | struct routetracker *new_routetracker(const tal_t *ctx, struct payment *payment) |
| 24 | { |
no test coverage detected