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

Function chanmap_add

lightningd/channel.c:285–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285static void chanmap_add(struct lightningd *ld,
286 struct channel *channel,
287 struct short_channel_id scid)
288{
289 struct scid_to_channel *scc = tal(channel, struct scid_to_channel);
290 scc->channel = channel;
291 scc->scid = scid;
292 channel_scid_map_add(ld->channels_by_scid, scc);
293 tal_add_destructor2(scc, destroy_scid_to_channel, ld);
294}
295
296void channel_set_scid(struct channel *channel, const struct short_channel_id *new_scid)
297{

Callers 4

channel_set_scidFunction · 0.85
channel_add_old_scidFunction · 0.85
new_unsaved_channelFunction · 0.85
new_channelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected