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

Function payment_route_can_carry

plugins/libplugin-pay.c:685–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685static bool payment_route_can_carry(const struct gossmap *map,
686 const struct gossmap_chan *c,
687 int dir,
688 struct amount_msat amount,
689 struct payment *p)
690{
691 if (!route_can_carry(map, c, dir, amount, p))
692 return false;
693
694 return payment_route_check(map, c, dir, amount, p);
695}
696
697static bool payment_route_can_carry_even_disabled(const struct gossmap *map,
698 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