Skip to content

Commit e0386ba

Browse files
committed
Increase CHANNEL_ANNOUNCEMENT_PROPAGATION_DELAY
The spec is being changed to keep around a channel_announcement when the funding_txo is spent. This allows spliced channels more time to exchange splice_locked messages before the channel is dropped from the network graph. While LDK does not drop such channels, it uses this constant to allow forwarding HTLCs over the channel using SCIDs from previous funding transactions. Here, the increase from 12 to 72 reflects the spec change.
1 parent 98ee8b1 commit e0386ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ pub(crate) const COINBASE_MATURITY: u32 = 100;
14241424
/// The number of blocks to wait for a channel_announcement to propagate such that payments using an
14251425
/// older SCID can still be relayed. Once the spend of the previous funding transaction has reached
14261426
/// this number of confirmations, the corresponding SCID will be forgotten.
1427-
const CHANNEL_ANNOUNCEMENT_PROPAGATION_DELAY: u32 = 12;
1427+
const CHANNEL_ANNOUNCEMENT_PROPAGATION_DELAY: u32 = 72;
14281428

14291429
struct PendingChannelMonitorUpdate {
14301430
update: ChannelMonitorUpdate,

0 commit comments

Comments
 (0)