Skip to content

Commit 64897a5

Browse files
committed
f Set accept_intercept_htlcs in Builder if we're an LSP
1 parent 0019584 commit 64897a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/builder.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,12 @@ fn build_with_store_internal(
10771077
100;
10781078
}
10791079

1080+
if liquidity_source_config.and_then(|lsc| lsc.lsps2_service.as_ref()).is_some() {
1081+
// If we act as an LSPS2 service, we need to to be able to intercept HTLCs and forward the
1082+
// information to the service handler.
1083+
user_config.accept_intercept_htlcs = true;
1084+
}
1085+
10801086
let message_router =
10811087
Arc::new(MessageRouter::new(Arc::clone(&network_graph), Arc::clone(&keys_manager)));
10821088

0 commit comments

Comments
 (0)