@@ -45,7 +45,7 @@ use crate::ln::features::{ChannelFeatures, ChannelTypeFeatures, InitFeatures, No
45
45
#[ cfg( any( feature = "_test_utils" , test) ) ]
46
46
use crate :: ln:: features:: InvoiceFeatures ;
47
47
use crate :: routing:: gossip:: NetworkGraph ;
48
- use crate :: routing:: router:: { DefaultRouter , InFlightHtlcs , Path , PaymentParameters , Route , RouteHop , RouteParameters , Router } ;
48
+ use crate :: routing:: router:: { BlindedTail , DefaultRouter , InFlightHtlcs , Path , PaymentParameters , Route , RouteHop , RouteParameters , Router } ;
49
49
use crate :: routing:: scoring:: ProbabilisticScorer ;
50
50
use crate :: ln:: msgs;
51
51
use crate :: ln:: onion_utils;
@@ -7007,19 +7007,21 @@ impl Readable for HTLCSource {
7007
7007
let mut path_hops: Option < Vec < RouteHop > > = Some ( Vec :: new ( ) ) ;
7008
7008
let mut payment_id = None ;
7009
7009
let mut payment_params: Option < PaymentParameters > = None ;
7010
+ let mut blinded_tail: Option < BlindedTail > = None ;
7010
7011
read_tlv_fields ! ( reader, {
7011
7012
( 0 , session_priv, required) ,
7012
7013
( 1 , payment_id, option) ,
7013
7014
( 2 , first_hop_htlc_msat, required) ,
7014
7015
( 4 , path_hops, vec_type) ,
7015
7016
( 5 , payment_params, ( option: ReadableArgs , 0 ) ) ,
7017
+ ( 6 , blinded_tail, option) ,
7016
7018
} ) ;
7017
7019
if payment_id. is_none ( ) {
7018
7020
// For backwards compat, if there was no payment_id written, use the session_priv bytes
7019
7021
// instead.
7020
7022
payment_id = Some ( PaymentId ( * session_priv. 0 . unwrap ( ) . as_ref ( ) ) ) ;
7021
7023
}
7022
- let path = Path { hops : path_hops. ok_or ( DecodeError :: InvalidValue ) ?, blinded_tail : None } ;
7024
+ let path = Path { hops : path_hops. ok_or ( DecodeError :: InvalidValue ) ?, blinded_tail } ;
7023
7025
if path. hops . len ( ) == 0 {
7024
7026
return Err ( DecodeError :: InvalidValue ) ;
7025
7027
}
@@ -7054,6 +7056,7 @@ impl Writeable for HTLCSource {
7054
7056
// 3 was previously used to write a PaymentSecret for the payment.
7055
7057
( 4 , path. hops, vec_type) ,
7056
7058
( 5 , None :: <PaymentParameters >, option) , // payment_params in LDK versions prior to 0.0.115
7059
+ ( 6 , path. blinded_tail, option) ,
7057
7060
} ) ;
7058
7061
}
7059
7062
HTLCSource :: PreviousHopData ( ref field) => {
0 commit comments