@@ -627,13 +627,13 @@ where
627627 ( control_tlvs_ss, custom_handler. deref ( ) , logger. deref ( ) )
628628 ) {
629629 Ok ( ( Payload :: Receive :: < ParsedOnionMessageContents < <<CMH as Deref >:: Target as CustomOnionMessageHandler >:: CustomMessage > > {
630- message, control_tlvs : ReceiveControlTlvs :: Unblinded ( ReceiveTlvs { path_id } ) , reply_path,
630+ message, control_tlvs : ReceiveControlTlvs :: Unblinded ( ReceiveTlvs { path_id, custom_tlvs } ) , reply_path,
631631 } , None ) ) => {
632632 Ok ( PeeledOnion : : Receive ( message, path_id, reply_path) )
633633 } ,
634634 Ok ( ( Payload : : Forward ( ForwardControlTlvs :: Unblinded ( ForwardTlvs {
635- next_node_id, next_blinding_override
636- } ) ) , Some ( ( next_hop_hmac, new_packet_bytes) ) ) ) => {
635+ next_node_id, next_blinding_override,
636+ custom_tlvs } ) ) , Some ( ( next_hop_hmac, new_packet_bytes) ) ) ) => {
637637 // TODO: we need to check whether `next_node_id` is our node, in which case this is a dummy
638638 // blinded hop and this onion message is destined for us. In this situation, we should keep
639639 // unwrapping the onion layers to get to the final payload. Since we don't have the option
@@ -1109,6 +1109,7 @@ fn packet_payloads_and_keys<T: OnionMessageContents, S: secp256k1::Signing + sec
11091109 ForwardTlvs {
11101110 next_node_id : unblinded_pk_opt. unwrap ( ) ,
11111111 next_blinding_override : None ,
1112+ custom_tlvs : Vec :: new ( ) ,
11121113 }
11131114 ) ) , ss) ) ;
11141115 }
@@ -1119,6 +1120,7 @@ fn packet_payloads_and_keys<T: OnionMessageContents, S: secp256k1::Signing + sec
11191120 payloads. push ( ( Payload :: Forward ( ForwardControlTlvs :: Unblinded ( ForwardTlvs {
11201121 next_node_id : intro_node_id,
11211122 next_blinding_override : Some ( blinding_pt) ,
1123+ custom_tlvs : Vec :: new ( )
11221124 } ) ) , control_tlvs_ss) ) ;
11231125 }
11241126 }
@@ -1152,7 +1154,7 @@ fn packet_payloads_and_keys<T: OnionMessageContents, S: secp256k1::Signing + sec
11521154 } , prev_control_tlvs_ss. unwrap ( ) ) ) ;
11531155 } else {
11541156 payloads. push ( ( Payload :: Receive {
1155- control_tlvs : ReceiveControlTlvs :: Unblinded ( ReceiveTlvs { path_id : None , } ) ,
1157+ control_tlvs : ReceiveControlTlvs :: Unblinded ( ReceiveTlvs { path_id : None , custom_tlvs : Vec :: new ( ) } ) ,
11561158 reply_path : reply_path. take ( ) ,
11571159 message,
11581160 } , prev_control_tlvs_ss. unwrap ( ) ) ) ;
0 commit comments