From 11505e9bc86768a9320f1b10e0183920a5145890 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Wed, 28 Jul 2021 17:47:54 -0400 Subject: [PATCH] Don't force announced channel preference --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4073be9..f2de6d2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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())) { -- 2.39.5