]> git.bitcoin.ninja Git - ldk-sample/commitdiff
Don't force announced channel preference
authorValentine Wallace <vwallace@protonmail.com>
Wed, 28 Jul 2021 21:47:54 +0000 (17:47 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 28 Jul 2021 21:47:54 +0000 (17:47 -0400)
src/main.rs

index 4073be9ea73faa4395955d00b8f1693f3a002405..f2de6d289e4cc413304506e253edd19a8088602f 100644 (file)
@@ -347,7 +347,8 @@ async fn start_ldk() {
        let mut channelmonitors = persister.read_channelmonitors(keys_manager.clone()).unwrap();
 
        // Step 8: Initialize the ChannelManager
-       let user_config = UserConfig::default();
+       let mut user_config = UserConfig::default();
+       user_config.peer_channel_config_limits.force_announced_channel_preference = false;
        let mut restarting_node = true;
        let (channel_manager_blockhash, mut channel_manager) = {
                if let Ok(mut f) = fs::File::open(format!("{}/manager", ldk_data_dir.clone())) {