]> git.bitcoin.ninja Git - rust-lightning/commit
Re-broadcast `channel_announcement`s every six blocks for a week 2024-10-rebroadcast-chan-announcements
authorMatt Corallo <git@bluematt.me>
Sun, 13 Oct 2024 17:14:23 +0000 (17:14 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 29 Oct 2024 17:53:11 +0000 (17:53 +0000)
commit948f1794a21a048e42ba47dff4f10316d6310e51
tree94475e11290dd0d384788ce7c9202b9ad1a0af03
parentad19d93180dc628f7bb21b52d917c96e76180f15
Re-broadcast `channel_announcement`s every six blocks for a week

When we first get a public channel confirmed at six blocks, we
broadcast a `channel_announcement` once and then move on. As long
as it makes it into our local network graph that should be okay, as
we should send peers our network graph contents as they seek to
sync, however its possible an ill-timed shutdown could cause this
to fail, and relying on peers to do a full historical sync from us
may delay `channel_announcement` propagation.

Instead, here, we re-broadcast our `channel_announcement`s every
six blocks for a week, which should be way more than robust enough
to get them properly across the P2P network.

Fixes #2418
lightning/src/ln/channelmanager.rs
lightning/src/ln/priv_short_conf_tests.rs