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

Function payment_chanhints_get

plugins/libplugin-pay.c:493–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493static struct channel_hint *payment_chanhints_get(struct payment *p,
494 struct route_hop *h)
495{
496 struct payment *root = payment_root(p);
497 struct short_channel_id_dir scidd = {.scid = h->scid, .dir = h->direction};
498 return channel_hint_set_find(root->hints, &scidd);
499}
500
501/* Given a route and a couple of channel hints, apply the route to the channel
502 * hints, so we have a better estimation of channel's capacity. We apply a

Callers 2

Calls 2

payment_rootFunction · 0.85
channel_hint_set_findFunction · 0.85

Tested by

no test coverage detected