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

Function get_channel_update

lightningd/gossip_control.c:137–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137const u8 *get_channel_update(struct channel *channel)
138{
139 /* Tell gossipd we're using it (if shutting down, might be NULL) */
140 if (channel->channel_update && channel->peer->ld->gossip) {
141 subd_send_msg(channel->peer->ld->gossip,
142 take(towire_gossipd_used_local_channel_update
143 (NULL, channel->scid)));
144 }
145 return channel->channel_update;
146}
147
148static unsigned gossip_msg(struct subd *gossip, const u8 *msg, const int *fds)
149{

Callers 4

destroy_hout_subd_diedFunction · 0.70
send_htlc_outFunction · 0.70
forward_htlcFunction · 0.70
channel_msgFunction · 0.70

Calls 1

subd_send_msgFunction · 0.70

Tested by

no test coverage detected