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

Function gossmap_chan_is_dying

common/gossmap.c:1462–1473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1460}
1461
1462bool gossmap_chan_is_dying(const struct gossmap *map,
1463 const struct gossmap_chan *c)
1464{
1465 struct gossip_hdr ghdr;
1466 u64 off;
1467
1468 /* FIXME: put this flag in plus_scid_off instead? */
1469 off = c->cann_off - sizeof(ghdr);
1470 map_copy(map, off, &ghdr, sizeof(ghdr));
1471
1472 return ghdr.flags & CPU_TO_BE16(GOSSIP_STORE_DYING_BIT);
1473}
1474
1475struct amount_msat gossmap_chan_get_capacity(const struct gossmap *map,
1476 const struct gossmap_chan *c)

Callers 5

all_node_channels_dyingFunction · 0.85
remove_channelFunction · 0.85
process_channel_updateFunction · 0.85
do_getroutesFunction · 0.85

Calls 1

map_copyFunction · 0.85

Tested by

no test coverage detected