Skip to content

Commit 0c82cc2

Browse files
committed
Make Trampoline inbound MPP data optional
Per the resolution of the spec discussion regarding the requirement of this field outside MPP scenarios, we are now marking this field as optional.
1 parent 4741892 commit 0c82cc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/msgs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ mod fuzzy_internal_msgs {
20782078
pub struct InboundTrampolineEntrypointPayload {
20792079
pub amt_to_forward: u64,
20802080
pub outgoing_cltv_value: u32,
2081-
pub multipath_trampoline_data: FinalOnionHopData,
2081+
pub multipath_trampoline_data: Option<FinalOnionHopData>,
20822082
pub trampoline_packet: TrampolineOnionPacket,
20832083
/// The blinding point this hop needs to decrypt its Trampoline onion.
20842084
/// This is used for Trampoline hops that are not the blinded path intro hop.
@@ -3272,7 +3272,7 @@ impl<NS: Deref> ReadableArgs<(Option<PublicKey>, NS)> for InboundOnionPayload wh
32723272
return Ok(Self::TrampolineEntrypoint(InboundTrampolineEntrypointPayload {
32733273
amt_to_forward: amt.ok_or(DecodeError::InvalidValue)?,
32743274
outgoing_cltv_value: cltv_value.ok_or(DecodeError::InvalidValue)?,
3275-
multipath_trampoline_data: payment_data.ok_or(DecodeError::InvalidValue)?,
3275+
multipath_trampoline_data: payment_data,
32763276
trampoline_packet: trampoline_onion_packet,
32773277
current_path_key: intro_node_blinding_point,
32783278
}))

0 commit comments

Comments
 (0)