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

Function route_can_carry_even_disabled

common/route.c:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <common/route.h>
7
8bool route_can_carry_even_disabled(const struct gossmap *map,
9 const struct gossmap_chan *c,
10 int dir,
11 struct amount_msat amount,
12 void *unused)
13{
14 if (!gossmap_chan_set(c, dir))
15 return false;
16 if (!gossmap_chan_capacity(c, dir, amount))
17 return false;
18 return true;
19}
20
21/* Generally only one side gets marked disabled, but it's disabled. */
22bool route_can_carry(const struct gossmap *map,

Calls 2

gossmap_chan_setFunction · 0.85
gossmap_chan_capacityFunction · 0.85

Tested by 2