Skip to content

Commit cb1cdf9

Browse files
committed
fixup! Add AnchorChannelsConfig::enable_zero_fee_commitments
1 parent d543ab3 commit cb1cdf9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/config.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,11 @@ pub(crate) fn default_user_config(config: &Config) -> UserConfig {
326326
user_config.manually_accept_inbound_channels = true;
327327
user_config.channel_handshake_config.negotiate_anchors_zero_fee_htlc_tx =
328328
config.anchor_channels_config.is_some();
329-
user_config.channel_handshake_config.negotiate_anchor_zero_fee_commitments =
330-
config.anchor_channels_config.as_ref().map(|config| config.enable_zero_fee_commitments).unwrap_or(false);
329+
user_config.channel_handshake_config.negotiate_anchor_zero_fee_commitments = config
330+
.anchor_channels_config
331+
.as_ref()
332+
.map(|config| config.enable_zero_fee_commitments)
333+
.unwrap_or(false);
331334

332335
if may_announce_channel(config).is_err() {
333336
user_config.accept_forwards_to_priv_channels = false;

0 commit comments

Comments
 (0)