1
0
Fork 0
mirror of https://github.com/lightning/bolts.git synced 2025-03-10 09:10:07 +01:00

gossip: delay considering a channel edge deleted for 12-blocks (#1004)

Allows us time to propagate a splice update (new channel_announcement)

Suggested-By: @t-bast
Co-Authored: @ddustin
This commit is contained in:
neil saitug 2022-08-15 15:16:35 -05:00 committed by GitHub
parent 6fee63fc34
commit 47d325c6ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,7 +224,7 @@ The receiving node:
- otherwise:
- SHOULD store this `channel_announcement`.
- once its funding output has been spent OR reorganized out:
- SHOULD forget a channel.
- SHOULD forget a channel after a 12-block delay.
### Rationale
@ -249,6 +249,10 @@ optional) features will have _odd_ feature bits, while incompatible features
will have _even_ feature bits
(["It's OK to be odd!"](00-introduction.md#glossary-and-terminology-guide)).
A delay of 12-blocks is used when forgetting a channel on funding output spend
as to permit a new `channel_announcement` to propagate which indicates this
channel was spliced.
## The `node_announcement` Message
This gossip message allows a node to indicate extra data associated with it, in