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

Function route_can_carry

common/route.c:23–32  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

payment_route_can_carryFunction · 0.85
can_carryFunction · 0.85

Calls 1

Tested by

no test coverage detected