@@ -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;
@@ -6877,19 +6877,21 @@ impl Readable for HTLCSource {
6877
6877
let mut path_hops: Option < Vec < RouteHop > > = Some ( Vec :: new ( ) ) ;
6878
6878
let mut payment_id = None ;
6879
6879
let mut payment_params: Option < PaymentParameters > = None ;
6880
+ let mut blinded_tail: Option < BlindedTail > = None ;
6880
6881
read_tlv_fields ! ( reader, {
6881
6882
( 0 , session_priv, required) ,
6882
6883
( 1 , payment_id, option) ,
6883
6884
( 2 , first_hop_htlc_msat, required) ,
6884
6885
( 4 , path_hops, vec_type) ,
6885
6886
( 5 , payment_params, ( option: ReadableArgs , 0 ) ) ,
6887
+ ( 6 , blinded_tail, option) ,
6886
6888
} ) ;
6887
6889
if payment_id. is_none ( ) {
6888
6890
// For backwards compat, if there was no payment_id written, use the session_priv bytes
6889
6891
// instead.
6890
6892
payment_id = Some ( PaymentId ( * session_priv. 0 . unwrap ( ) . as_ref ( ) ) ) ;
6891
6893
}
6892
- let path = Path { hops : path_hops. ok_or ( DecodeError :: InvalidValue ) ?, blinded_tail : None } ;
6894
+ let path = Path { hops : path_hops. ok_or ( DecodeError :: InvalidValue ) ?, blinded_tail } ;
6893
6895
if path. hops . len ( ) == 0 {
6894
6896
return Err ( DecodeError :: InvalidValue ) ;
6895
6897
}
@@ -6924,6 +6926,7 @@ impl Writeable for HTLCSource {
6924
6926
// 3 was previously used to write a PaymentSecret for the payment.
6925
6927
( 4 , path. hops, vec_type) ,
6926
6928
( 5 , None :: <PaymentParameters >, option) , // payment_params in LDK versions prior to 0.0.115
6929
+ ( 6 , path. blinded_tail, option) ,
6927
6930
} ) ;
6928
6931
}
6929
6932
HTLCSource :: PreviousHopData ( ref field) => {
0 commit comments