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

Function insert_local_space

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

742
743/* Create space at end of local map, return offset it was added at. */
744static 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
753static struct localmod *find_localmod(struct gossmap_localmods *localmods,
754 const struct short_channel_id *scid)

Callers 1

gossmap_local_addchanFunction · 0.85

Calls 1

tal_bytelenFunction · 0.85

Tested by

no test coverage detected