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

Function chanmap_remove

lightningd/channel.c:275–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275static void chanmap_remove(struct lightningd *ld,
276 const struct channel *channel,
277 struct short_channel_id scid)
278{
279 struct scid_to_channel *scc = channel_scid_map_get(ld->channels_by_scid, scid);
280 assert(scc->channel == channel);
281 tal_free(scc);
282}
283
284static void destroy_scid_to_channel(struct scid_to_channel *scc,
285 struct lightningd *ld)

Callers 2

channel_set_scidFunction · 0.85

Calls 1

tal_freeFunction · 0.85

Tested by 1