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

Function route_pubkey

plugins/libplugin-pay.c:2887–2894  ·  view source on GitHub ↗

The pubkey to use is the destination of this routehint. */

Source from the content-addressed store, hash-verified

2885
2886/* The pubkey to use is the destination of this routehint. */
2887static const struct node_id *route_pubkey(const struct payment *p,
2888 const struct route_info *routehint,
2889 size_t n)
2890{
2891 if (n == tal_count(routehint))
2892 return p->route_destination;
2893 return &routehint[n].pubkey;
2894}
2895
2896static u32 route_cltv(u32 cltv,
2897 const struct route_info *route, size_t num_route)

Callers 1

routehint_step_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected