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

Function chanmap_add

lightningd/channel.c:291–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static void chanmap_add(struct lightningd *ld,
292 struct channel *channel,
293 struct short_channel_id scid)
294{
295 struct scid_to_channel *scc = tal(channel, struct scid_to_channel);
296 scc->channel = channel;
297 scc->scid = scid;
298 channel_scid_map_add(ld->channels_by_scid, scc);
299 tal_add_destructor2(scc, destroy_scid_to_channel, ld);
300}
301
302void channel_set_scid(struct channel *channel, const struct short_channel_id *new_scid)
303{

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