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

Function route_get_payment_verify

plugins/renepay/routetracker.c:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <plugins/renepay/routetracker.h>
10
11static 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
23struct routetracker *new_routetracker(const tal_t *ctx, struct payment *payment)
24{

Callers 1

route_pending_registerFunction · 0.85

Calls 2

fmt_routekeyFunction · 0.85
plugin_errFunction · 0.50

Tested by

no test coverage detected