diff --git a/src/event.rs b/src/event.rs index ed9f21adf..70e02207e 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1170,13 +1170,11 @@ where let user_channel_id: u128 = rand::thread_rng().gen::(); let allow_0conf = self.config.trusted_peers_0conf.contains(&counterparty_node_id); let mut channel_override_config = None; - if let Some((lsp_node_id, _)) = self - .liquidity_source - .as_ref() - .and_then(|ls| ls.as_ref().get_lsps2_lsp_details()) - { + if let Some((lsp_node_id, _)) = self.liquidity_source.as_ref().and_then(|ls| { + ls.get_lsps2_lsp_details().or(ls.get_lsps4_lsp_details()) + }) { if lsp_node_id == counterparty_node_id { - // When we're an LSPS2 client, allow claiming underpaying HTLCs as the LSP will skim off some fee. We'll + // When we're an LSPS2/4 client, allow claiming underpaying HTLCs as the LSP will skim off some fee. We'll // check that they don't take too much before claiming. // // We also set maximum allowed inbound HTLC value in flight