Skip to content

Commit b64d199

Browse files
committed
Make Trampoline inbound MPP data optional
Pending resolution of minor spec discussion regarding the requirement of this field outside MPP scenarios, we will temporarily opt for higher flexibility and make it optional.
1 parent 87c5cae commit b64d199

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
@@ -2080,7 +2080,7 @@ mod fuzzy_internal_msgs {
20802080
pub struct InboundTrampolineEntrypointPayload {
20812081
pub amt_to_forward: u64,
20822082
pub outgoing_cltv_value: u32,
2083-
pub multipath_trampoline_data: FinalOnionHopData,
2083+
pub multipath_trampoline_data: Option<FinalOnionHopData>,
20842084
pub trampoline_packet: TrampolineOnionPacket,
20852085
/// The blinding point this hop needs to decrypt its Trampoline onion.
20862086
/// This is used for Trampoline hops that are not the blinded path intro hop.
@@ -3302,7 +3302,7 @@ impl<NS: Deref> ReadableArgs<(Option<PublicKey>, NS)> for InboundOnionPayload wh
33023302
return Ok(Self::TrampolineEntrypoint(InboundTrampolineEntrypointPayload {
33033303
amt_to_forward: amt.ok_or(DecodeError::InvalidValue)?,
33043304
outgoing_cltv_value: cltv_value.ok_or(DecodeError::InvalidValue)?,
3305-
multipath_trampoline_data: payment_data.ok_or(DecodeError::InvalidValue)?,
3305+
multipath_trampoline_data: payment_data,
33063306
trampoline_packet: trampoline_onion_packet,
33073307
current_path_key: intro_node_blinding_point,
33083308
}))

0 commit comments

Comments
 (0)