Skip to content

Commit

Permalink
chore(coordinator): Remove duplicated config parameter
Browse files Browse the repository at this point in the history
The same `forwarding_fee_proportional_millionths` field already exists
in `LnDlcNodeSettings`.
  • Loading branch information
luckysori committed Nov 3, 2023
1 parent 87699eb commit 247a892
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions coordinator/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PathBuf>,

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 247a892

Please sign in to comment.