Skip to content

Commit 01fc221

Browse files
f more explicit match
1 parent 4a18391 commit 01fc221

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,9 @@ where
26862686
// We'll do receive checks in [`Self::construct_pending_htlc_info`] so we have access to the
26872687
// inbound channel's state.
26882688
onion_utils::Hop::Receive { .. } => return Ok((next_hop, shared_secret)),
2689-
_ => {
2689+
onion_utils::Hop::Forward {
2690+
next_hop_data: msgs::OnionHopData { format: msgs::OnionHopDataFormat::FinalNode { .. }, .. }, ..
2691+
} => {
26902692
return_err!("Final Node OnionHopData provided for us as an intermediary node", 0x4000 | 22, &[0; 0]);
26912693
}
26922694
};

0 commit comments

Comments
 (0)