Skip to content

Commit

Permalink
WIP: Check and claim underpaying HTLCs
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Jan 9, 2024
1 parent 8d69393 commit e8cfd19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,12 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
// 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,
Expand Down

0 comments on commit e8cfd19

Please sign in to comment.