| 536 | } |
| 537 | |
| 538 | static 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 | |
| 554 | struct short_channel_id gossmap_chan_scid(const struct gossmap *map, |
| 555 | const struct gossmap_chan *c) |
no test coverage detected