@@ -429,6 +429,7 @@ pub(crate) struct DecodedOnionFailure {
429
429
pub ( crate ) network_update : Option < NetworkUpdate > ,
430
430
pub ( crate ) short_channel_id : Option < u64 > ,
431
431
pub ( crate ) payment_failed_permanently : bool ,
432
+ pub ( crate ) failed_within_blinded_path : bool ,
432
433
#[ cfg( test) ]
433
434
pub ( crate ) onion_error_code : Option < u16 > ,
434
435
#[ cfg( test) ]
@@ -725,7 +726,7 @@ pub(super) fn process_onion_failure<T: secp256k1::Signing, L: Deref>(
725
726
network_update, short_channel_id, payment_failed_permanently, failed_within_blinded_path
726
727
} ) = res {
727
728
DecodedOnionFailure {
728
- network_update, short_channel_id, payment_failed_permanently,
729
+ network_update, short_channel_id, payment_failed_permanently, failed_within_blinded_path ,
729
730
#[ cfg( test) ]
730
731
onion_error_code : error_code_ret,
731
732
#[ cfg( test) ]
@@ -736,6 +737,7 @@ pub(super) fn process_onion_failure<T: secp256k1::Signing, L: Deref>(
736
737
// payment not retryable only when garbage is from the final node
737
738
DecodedOnionFailure {
738
739
network_update : None , short_channel_id : None , payment_failed_permanently : is_from_final_node,
740
+ failed_within_blinded_path : false ,
739
741
#[ cfg( test) ]
740
742
onion_error_code : None ,
741
743
#[ cfg( test) ]
@@ -883,6 +885,7 @@ impl HTLCFailReason {
883
885
network_update : None ,
884
886
payment_failed_permanently : false ,
885
887
short_channel_id : Some ( path. hops [ 0 ] . short_channel_id ) ,
888
+ failed_within_blinded_path : false ,
886
889
#[ cfg( test) ]
887
890
onion_error_code : Some ( * failure_code) ,
888
891
#[ cfg( test) ]
0 commit comments