From 247a892f174e3a345796153ab28f896366f6c108 Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Fri, 3 Nov 2023 21:49:16 +1100 Subject: [PATCH] chore(coordinator): Remove duplicated config parameter The same `forwarding_fee_proportional_millionths` field already exists in `LnDlcNodeSettings`. --- coordinator/src/settings.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/coordinator/src/settings.rs b/coordinator/src/settings.rs index 7ffc70936..05c85cdfe 100644 --- a/coordinator/src/settings.rs +++ b/coordinator/src/settings.rs @@ -43,10 +43,6 @@ pub struct Settings { pub ln_dlc: LnDlcNodeSettings, - /// Amount (in millionths of a satoshi) charged per satoshi for payments forwarded outbound - /// over a channel. - pub forwarding_fee_proportional_millionths: u32, - // Special parameter, where the settings file is located pub path: Option, @@ -103,7 +99,6 @@ impl Settings { fallback_tx_fee_rate_high_priority: 5000, max_allowed_tx_fee_rate_when_opening_channel: None, ln_dlc: LnDlcNodeSettings::default(), - forwarding_fee_proportional_millionths: 50, path: None, rollover_window_open_scheduler, rollover_window_close_scheduler, @@ -168,7 +163,8 @@ impl Settings { ldk_config .channel_config - .forwarding_fee_proportional_millionths = self.forwarding_fee_proportional_millionths; + .forwarding_fee_proportional_millionths = + self.ln_dlc.forwarding_fee_proportional_millionths; ldk_config }