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

Function remove_channel_by_deletemsg

common/gossmap.c:538–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538static void remove_channel_by_deletemsg(struct gossmap *map, size_t del_off)
539{
540 struct short_channel_id scid;
541 struct gossmap_chan *chan;
542
543 /* They can delete things we don't know about, since they also
544 * get their length marked with the deleted bit */
545 /* Note that first two bytes are message type */
546 scid.u64 = map_be64(map, del_off + 2);
547 chan = gossmap_find_chan(map, &scid);
548 if (!chan)
549 return;
550
551 gossmap_remove_chan(map, chan);
552}
553
554struct short_channel_id gossmap_chan_scid(const struct gossmap *map,
555 const struct gossmap_chan *c)

Callers 1

map_catchupFunction · 0.85

Calls 3

map_be64Function · 0.85
gossmap_find_chanFunction · 0.85
gossmap_remove_chanFunction · 0.85

Tested by

no test coverage detected