Add anchors flag to openchannel CLI command
[ldk-sample] / src / main.rs
index f1e1cbfedc300e563dba70e19007839af334d9ea..9fd11904f734d7cb80987d98f9970604dd64e4ee 100644 (file)
@@ -607,6 +607,7 @@ async fn start_ldk() {
        // Step 11: Initialize the ChannelManager
        let mut user_config = UserConfig::default();
        user_config.channel_handshake_limits.force_announced_channel_preference = false;
+       user_config.channel_handshake_config.negotiate_anchors_zero_fee_htlc_tx = true;
        user_config.manually_accept_inbound_channels = true;
        let mut restarting_node = true;
        let (channel_manager_blockhash, channel_manager) = {