Commit 948f179
committed
Re-broadcast
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 #2418channel_announcements every six blocks for a week1 parent ad19d93 commit 948f179
File tree
2 files changed
+37
-12
lines changed- lightning/src/ln
2 files changed
+37
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10216 | 10216 | | |
10217 | 10217 | | |
10218 | 10218 | | |
10219 | | - | |
10220 | | - | |
10221 | | - | |
10222 | | - | |
10223 | | - | |
10224 | | - | |
10225 | | - | |
10226 | | - | |
| 10219 | + | |
| 10220 | + | |
| 10221 | + | |
| 10222 | + | |
| 10223 | + | |
| 10224 | + | |
| 10225 | + | |
| 10226 | + | |
| 10227 | + | |
| 10228 | + | |
| 10229 | + | |
| 10230 | + | |
| 10231 | + | |
| 10232 | + | |
| 10233 | + | |
| 10234 | + | |
| 10235 | + | |
| 10236 | + | |
| 10237 | + | |
| 10238 | + | |
| 10239 | + | |
| 10240 | + | |
| 10241 | + | |
| 10242 | + | |
10227 | 10243 | | |
10228 | 10244 | | |
10229 | | - | |
10230 | | - | |
| 10245 | + | |
| 10246 | + | |
| 10247 | + | |
| 10248 | + | |
10231 | 10249 | | |
10232 | 10250 | | |
10233 | 10251 | | |
10234 | 10252 | | |
10235 | 10253 | | |
| 10254 | + | |
| 10255 | + | |
| 10256 | + | |
| 10257 | + | |
| 10258 | + | |
| 10259 | + | |
| 10260 | + | |
10236 | 10261 | | |
10237 | 10262 | | |
10238 | 10263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
0 commit comments