From: Valentine Wallace Date: Wed, 28 Jul 2021 21:47:54 +0000 (-0400) Subject: Don't force announced channel preference X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=11505e9bc86768a9320f1b10e0183920a5145890;p=ldk-sample Don't force announced channel preference --- 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())) {