forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channeld: delay sending channel_announcement by 60 seconds.
We currently send channel_announcement as soon as we and our peer agree it's 6 blocks deep. In theory, our other peers might not have seen that block yet though, so delay a little. This is mitigated by two factors: 1. lnd will stash any "not ready yet" channel_announcements anyway. 2. c-lightning doesn't enforce the 6 depth minimum at all. We should not rely on other nodes' generosity or laxity, however! Next release, we can start enforcing the depth limit, and maybe stashing ones which don't quite make it (or simply enforce depth 5, not 6). Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information
1 parent
3e74ca4
commit 2b3003f
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters