@@ -1688,6 +1688,7 @@ mod fuzzy_internal_msgs {
1688
1688
payment_secret : PaymentSecret ,
1689
1689
payment_constraints : PaymentConstraints ,
1690
1690
intro_node_blinding_point : Option < PublicKey > ,
1691
+ keysend_preimage : Option < PaymentPreimage > ,
1691
1692
}
1692
1693
}
1693
1694
@@ -2562,9 +2563,7 @@ impl<NS: Deref> ReadableArgs<(Option<PublicKey>, &NS)> for InboundOnionPayload w
2562
2563
}
2563
2564
2564
2565
if let Some ( blinding_point) = intro_node_blinding_point. or ( update_add_blinding_point) {
2565
- if short_id. is_some ( ) || payment_data. is_some ( ) || payment_metadata. is_some ( ) ||
2566
- keysend_preimage. is_some ( )
2567
- {
2566
+ if short_id. is_some ( ) || payment_data. is_some ( ) || payment_metadata. is_some ( ) {
2568
2567
return Err ( DecodeError :: InvalidValue )
2569
2568
}
2570
2569
let enc_tlvs = encrypted_tlvs_opt. ok_or ( DecodeError :: InvalidValue ) ?. 0 ;
@@ -2577,7 +2576,9 @@ impl<NS: Deref> ReadableArgs<(Option<PublicKey>, &NS)> for InboundOnionPayload w
2577
2576
ChaChaPolyReadAdapter { readable : BlindedPaymentTlvs :: Forward ( ForwardTlvs {
2578
2577
short_channel_id, payment_relay, payment_constraints, features
2579
2578
} ) } => {
2580
- if amt. is_some ( ) || cltv_value. is_some ( ) || total_msat. is_some ( ) {
2579
+ if amt. is_some ( ) || cltv_value. is_some ( ) || total_msat. is_some ( ) ||
2580
+ keysend_preimage. is_some ( )
2581
+ {
2581
2582
return Err ( DecodeError :: InvalidValue )
2582
2583
}
2583
2584
Ok ( Self :: BlindedForward {
@@ -2599,6 +2600,7 @@ impl<NS: Deref> ReadableArgs<(Option<PublicKey>, &NS)> for InboundOnionPayload w
2599
2600
payment_secret,
2600
2601
payment_constraints,
2601
2602
intro_node_blinding_point,
2603
+ keysend_preimage,
2602
2604
} )
2603
2605
} ,
2604
2606
}
0 commit comments