From e8cfd196d18c72ae358d9cefbd7543c86da9fe60 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Tue, 9 Jan 2024 16:49:08 +0100 Subject: [PATCH] WIP: Check and claim underpaying HTLCs --- src/builder.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/builder.rs b/src/builder.rs index ba6e12053..70fbdd76d 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -672,6 +672,12 @@ fn build_with_store_internal( // generating the events otherwise. user_config.manually_accept_inbound_channels = true; } + + if liquidity_source_config.is_some() { + // Generally allow claiming underpaying HTLCs as the LSP will skim off some fee. We'll + // check that they don't take too much before claiming. + user_config.channel_config.accept_underpaying_htlcs = true; + } let channel_manager = { if let Ok(res) = kv_store.read( CHANNEL_MANAGER_PERSISTENCE_PRIMARY_NAMESPACE,