]> 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>
Sun, 13 Oct 2024 17:17:29 +0000 (17:17 +0000)
commitb5efe05b546df467ca9895afaa3e47cef68c91b5
tree914845dd5f9716edcbcfe96a302e8b68d1a0d2eb
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