Skip to content

Commit 829134a

Browse files
f account for having a RouteHop for intro node and fix bug
1 parent 3048969 commit 829134a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6892,7 +6892,7 @@ impl Readable for HTLCSource {
68926892
payment_id = Some(PaymentId(*session_priv.0.unwrap().as_ref()));
68936893
}
68946894
let path = path.unwrap_or(Vec::new());
6895-
if path.is_empty() && blinded_tail.is_none() {
6895+
if path.is_empty() {
68966896
return Err(DecodeError::InvalidValue);
68976897
}
68986898
if let Some(params) = payment_params.as_mut() {
@@ -6903,7 +6903,7 @@ impl Readable for HTLCSource {
69036903
Ok(HTLCSource::OutboundRoute {
69046904
session_priv: session_priv.0.unwrap(),
69056905
first_hop_htlc_msat,
6906-
path: Path { hops: path, blinded_tail: None },
6906+
path: Path { hops: path, blinded_tail },
69076907
payment_id: payment_id.unwrap(),
69086908
})
69096909
}

0 commit comments

Comments
 (0)