Commit bc1fac3
committed
Skip node ann. broadcast if the public channel isn't ready yet
Previously, we'd only skip broadcasting a node announcement if we don't
have public channel. However, this could lead to us broadcasting the
initial node announcement too early: it would be broadcast after the
channel is pending but before it's confirmed and we had a chance to
generate and exchange the channel announcement, leading to our
counterparty ignoring the node announcement.
Here, we just check that the public channel is actually ready (but don't
bother if it's useable) before we trigger the broadcast.
Note that this wouldn't have been a big issue before as we expect
announced nodes to be always-online and we'd have rebroadcast the
announcement after an hour anyways. However, it can be annoying in
testing.1 parent 0e02969 commit bc1fac3
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
584 | | - | |
| 583 | + | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| |||
0 commit comments