Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit cc1226d

Browse files
committed
Enable anchor channels and scid aliases
1 parent 285fc6d commit cc1226d

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

mutiny-core/src/node.rs

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,15 +1781,7 @@ impl<S: MutinyStorage> Node<S> {
17811781
.lsp_client
17821782
.as_ref()
17831783
.is_some_and(|l| l.accept_underpaying_htlcs());
1784-
let mut config = default_user_config(accept_underpaying_htlcs);
1785-
1786-
// if we are opening channel to LSP, turn off SCID alias until CLN is updated
1787-
// LSP protects all invoice information anyways, so no UTXO leakage
1788-
if let Some(lsp) = self.lsp_client.clone() {
1789-
if pubkey == lsp.get_lsp_pubkey().await {
1790-
config.channel_handshake_config.negotiate_scid_privacy = false;
1791-
}
1792-
}
1784+
let config = default_user_config(accept_underpaying_htlcs);
17931785

17941786
let user_channel_id = user_channel_id.unwrap_or_else(|| {
17951787
// generate random user channel id
@@ -1890,14 +1882,7 @@ impl<S: MutinyStorage> Node<S> {
18901882
.lsp_client
18911883
.as_ref()
18921884
.is_some_and(|l| l.accept_underpaying_htlcs());
1893-
let mut config = default_user_config(accept_underpaying_htlcs);
1894-
// if we are opening channel to LSP, turn off SCID alias until CLN is updated
1895-
// LSP protects all invoice information anyways, so no UTXO leakage
1896-
if let Some(lsp) = self.lsp_client.clone() {
1897-
if pubkey == lsp.get_lsp_pubkey().await {
1898-
config.channel_handshake_config.negotiate_scid_privacy = false;
1899-
}
1900-
}
1885+
let config = default_user_config(accept_underpaying_htlcs);
19011886

19021887
let user_channel_id = user_chan_id.unwrap_or_else(|| {
19031888
// generate random user channel id
@@ -2364,7 +2349,7 @@ pub(crate) fn default_user_config(accept_underpaying_htlcs: bool) -> UserConfig
23642349
announced_channel: false,
23652350
negotiate_scid_privacy: true,
23662351
commit_upfront_shutdown_pubkey: false,
2367-
negotiate_anchors_zero_fee_htlc_tx: false,
2352+
negotiate_anchors_zero_fee_htlc_tx: true, // enable anchor channels
23682353
max_inbound_htlc_value_in_flight_percent_of_channel: 100,
23692354
our_to_self_delay: 6 * 24 * 2, // 2 days
23702355
their_channel_reserve_proportional_millionths: 0,

0 commit comments

Comments
 (0)