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

Function route_can_carry

common/route.c:22–31  ·  view source on GitHub ↗

Generally only one side gets marked disabled, but it's disabled. */

Source from the content-addressed store, hash-verified

20
21/* Generally only one side gets marked disabled, but it's disabled. */
22bool route_can_carry(const struct gossmap *map,
23 const struct gossmap_chan *c,
24 int dir,
25 struct amount_msat amount,
26 void *arg)
27{
28 if (!c->half[dir].enabled)
29 return false;
30 return route_can_carry_even_disabled(map, c, dir, amount, arg);
31}
32
33/* Squeeze total costs into a u32 */
34static u32 costs_to_score(struct amount_msat cost,

Callers 2

payment_route_can_carryFunction · 0.85
can_carryFunction · 0.85

Calls 1

Tested by

no test coverage detected