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

Function cupdate_timer_refresh

lightningd/channel_gossip.c:621–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621static void cupdate_timer_refresh(struct channel *channel)
622{
623 struct lightningd *ld = channel->peer->ld;
624 struct channel_gossip *cg = channel->channel_gossip;
625
626 /* Don't try to free this again if set_public_cupdate called later */
627 cg->refresh_timer = NULL;
628
629 log_debug(channel->log, "Sending keepalive channel_update for %s",
630 fmt_short_channel_id(tmpctx, *channel->scid));
631
632 /* Free old cupdate to force a new one to be generated */
633 cg->cupdate = tal_free(cg->cupdate);
634 update_channel_update(channel, channel_should_enable(channel, true));
635
636 broadcast_new_gossip(ld, cg->cupdate, NULL, "channel update");
637 arm_refresh_timer(channel);
638}
639
640static void stash_remote_announce_sigs(struct channel *channel,
641 struct short_channel_id scid,

Callers

nothing calls this directly

Calls 6

fmt_short_channel_idFunction · 0.85
tal_freeFunction · 0.85
update_channel_updateFunction · 0.85
channel_should_enableFunction · 0.85
broadcast_new_gossipFunction · 0.85
arm_refresh_timerFunction · 0.85

Tested by

no test coverage detected