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

Function channel_scid_or_local_alias

lightningd/channel.c:988–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988const struct short_channel_id *
989channel_scid_or_local_alias(const struct channel *chan)
990{
991 assert(chan->scid != NULL || chan->alias[LOCAL] != NULL);
992 if (chan->scid != NULL)
993 return chan->scid;
994 else
995 return chan->alias[LOCAL];
996}

Callers 13

wallet_htlcs_firstFunction · 0.85
send_payment_coreFunction · 0.85
rcvd_htlc_replyFunction · 0.85
forward_htlcFunction · 0.85
calc_forwarding_channelFunction · 0.85
fulfill_our_htlc_outFunction · 0.85
peer_failed_our_htlcFunction · 0.85
onchain_failed_our_htlcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected