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

Function insert_local_space

common/gossmap.c:1035–1041  ·  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

1033
1034/* Create space at end of local map, return offset it was added at. */
1035static size_t insert_local_space(u8 **localspace, size_t msglen)
1036{
1037 size_t oldlen = tal_bytelen(*localspace);
1038
1039 tal_resize(localspace, oldlen + msglen);
1040 return oldlen;
1041}
1042
1043static struct localmod *find_localmod(struct gossmap_localmods *localmods,
1044 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