Skip to content

Commit

Permalink
Merge pull request #429 from MutinyWallet/lsp-turn-off-scid
Browse files Browse the repository at this point in the history
Turn off scid alias for lsp open channels
  • Loading branch information
TonyGiorgio authored Apr 27, 2023
2 parents c2b6f9a + 8fad1d4 commit 2a4316a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mutiny-core/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,16 @@ impl Node {
pubkey: PublicKey,
amount_sat: u64,
) -> Result<[u8; 32], MutinyError> {
let config = default_user_config();
let mut config = default_user_config();

// if we are opening channel to LSP, turn off SCID alias until CLN is updated
// LSP protects all invoice information anyways, so no UTXO leakage
if let Some(lsp) = self.lsp_client.clone() {
if pubkey == lsp.pubkey {
config.channel_handshake_config.negotiate_scid_privacy = false;
}
}

match self
.channel_manager
.create_channel(pubkey, amount_sat, 0, 0, Some(config))
Expand Down

0 comments on commit 2a4316a

Please sign in to comment.