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

Function insert_local_space

common/gossmap.c:1030–1036  ·  view source on GitHub ↗

Create space at end of local map, return offset it was added at. */

Source from the content-addressed store, hash-verified

1028
1029/* Create space at end of local map, return offset it was added at. */
1030static size_t insert_local_space(u8 **localspace, size_t msglen)
1031{
1032 size_t oldlen = tal_bytelen(*localspace);
1033
1034 tal_resize(localspace, oldlen + msglen);
1035 return oldlen;
1036}
1037
1038static struct localmod *find_localmod(struct gossmap_localmods *localmods,
1039 struct short_channel_id scid)

Callers 2

gossmap_local_addchanFunction · 0.85
gossmap_apply_localmodsFunction · 0.85

Calls 1

tal_bytelenFunction · 0.85

Tested by

no test coverage detected