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

Function route_pubkey

plugins/libplugin-pay.c:2903–2910  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2901
2902/* The pubkey to use is the destination of this routehint. */
2903static const struct node_id *route_pubkey(const struct payment *p,
2904 const struct route_info *routehint,
2905 size_t n)
2906{
2907 if (n == tal_count(routehint))
2908 return p->route_destination;
2909 return &routehint[n].pubkey;
2910}
2911
2912static u32 route_cltv(u32 cltv,
2913 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