Create space at end of local map, return offset it was added at. */
| 742 | |
| 743 | /* Create space at end of local map, return offset it was added at. */ |
| 744 | static size_t insert_local_space(struct gossmap_localmods *localmods, |
| 745 | size_t msglen) |
| 746 | { |
| 747 | size_t oldlen = tal_bytelen(localmods->local); |
| 748 | |
| 749 | tal_resize(&localmods->local, oldlen + msglen); |
| 750 | return oldlen; |
| 751 | } |
| 752 | |
| 753 | static struct localmod *find_localmod(struct gossmap_localmods *localmods, |
| 754 | const struct short_channel_id *scid) |
no test coverage detected