Skip to content

Commit 010b2b9

Browse files
Support multi-hop blinded paths for RAA
XXX
1 parent c172251 commit 010b2b9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lightning/src/offers/flow.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,9 +1177,14 @@ where
11771177
where
11781178
ES::Target: EntropySource,
11791179
{
1180-
// In the future, we should support multi-hop paths here.
11811180
let context =
11821181
MessageContext::AsyncPayments(AsyncPaymentsContext::ReleaseHeldHtlc { intercept_id });
1182+
if let Ok(mut paths) = self.create_blinded_paths(context.clone()) {
1183+
if let Some(path) = paths.pop() {
1184+
return path;
1185+
}
1186+
}
1187+
11831188
let num_dummy_hops = PADDED_PATH_LENGTH.saturating_sub(1);
11841189
BlindedMessagePath::new_with_dummy_hops(
11851190
&[],

0 commit comments

Comments
 (0)