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

Function update_v1_channelid

connectd/multiplex.c:890–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890static void update_v1_channelid(struct subd *subd, const u8 *funding_created)
891{
892 struct bitcoin_outpoint outp;
893
894 if (!extract_funding_created_funding(funding_created, &outp)) {
895 status_peer_unusual(&subd->peer->id, "WARNING: funding_created no tx info?");
896 return;
897 }
898 move_channel_id_to_temp(subd);
899 derive_channel_id(&subd->channel_id, &outp);
900}
901
902static void update_v2_channelid(struct subd *subd, const u8 *accept_channel2)
903{

Callers 1

maybe_update_channelidFunction · 0.85

Calls 3

move_channel_id_to_tempFunction · 0.85
derive_channel_idFunction · 0.50

Tested by

no test coverage detected