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

Function route_pubkey

plugins/libplugin-pay.c:2617–2624  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2615
2616/* The pubkey to use is the destination of this routehint. */
2617static const struct node_id *route_pubkey(const struct payment *p,
2618 const struct route_info *routehint,
2619 size_t n)
2620{
2621 if (n == tal_count(routehint))
2622 return p->destination;
2623 return &routehint[n].pubkey;
2624}
2625
2626static u32 route_cltv(u32 cltv,
2627 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