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

Function payment_route_can_carry

plugins/libplugin-pay.c:712–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712static bool payment_route_can_carry(const struct gossmap *map,
713 const struct gossmap_chan *c,
714 int dir,
715 struct amount_msat amount,
716 struct payment *p)
717{
718 if (!route_can_carry(map, c, dir, amount, p))
719 return false;
720
721 return payment_route_check(map, c, dir, amount, p);
722}
723
724static bool payment_route_can_carry_even_disabled(const struct gossmap *map,
725 const struct gossmap_chan *c,

Callers

nothing calls this directly

Calls 2

route_can_carryFunction · 0.85
payment_route_checkFunction · 0.85

Tested by

no test coverage detected