| 619 | } |
| 620 | |
| 621 | static 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 | |
| 640 | static void stash_remote_announce_sigs(struct channel *channel, |
| 641 | struct short_channel_id scid, |
nothing calls this directly
no test coverage detected