Skip to content

Commit e4d4474

Browse files
committed
Disable anchor channel support
Stop advertising anchor channel support by setting anchor_channels_config to None when building the LDK node config. Anchors require a 25,000 sat on-chain reserve per channel to fund force-close commitment fee bumps — overhead an mdkd client with a single channel to the LSP can't justify holding back on chain. Affects new channels only: existing anchor-output channels keep their reserve until close/splice.
1 parent e6e9d8e commit e4d4474

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mdk/node.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ pub fn build_node(
3737
listening_addresses: config.listening_addresses,
3838
announcement_addresses: config.announcement_addresses,
3939
network: config.network,
40+
// Don't advertise anchor channel support: anchors require a
41+
// 25_000 sat on-chain reserve per channel for force-close fee
42+
// bumping, which mdkd clients (one channel to the LSP) should not have in general.
43+
anchor_channels_config: None,
4044
..Default::default()
4145
};
4246

0 commit comments

Comments
 (0)