@@ -507,7 +507,7 @@ pub(super) fn process_onion_failure<T: secp256k1::Signing, L: Deref>(
507
507
is_permanent : true ,
508
508
} ) ;
509
509
let short_channel_id = Some ( route_hop. short_channel_id ) ;
510
- res = Some ( ( network_update, short_channel_id, ! is_from_final_node) ) ;
510
+ res = Some ( ( network_update, short_channel_id, is_from_final_node) ) ;
511
511
return
512
512
}
513
513
} ;
@@ -659,7 +659,7 @@ pub(super) fn process_onion_failure<T: secp256k1::Signing, L: Deref>(
659
659
short_channel_id = Some ( route_hop. short_channel_id ) ;
660
660
}
661
661
662
- res = Some ( ( network_update, short_channel_id, ! ( error_code & PERM == PERM && is_from_final_node) ) ) ;
662
+ res = Some ( ( network_update, short_channel_id, error_code & PERM == PERM && is_from_final_node) ) ;
663
663
664
664
let ( description, title) = errors:: get_onion_error_description ( error_code) ;
665
665
if debug_field_size > 0 && err_packet. failuremsg . len ( ) >= 4 + debug_field_size {
@@ -668,9 +668,9 @@ pub(super) fn process_onion_failure<T: secp256k1::Signing, L: Deref>(
668
668
log_info ! ( logger, "Onion Error[from {}: {}({:#x})] {}" , route_hop. pubkey, title, error_code, description) ;
669
669
}
670
670
} ) . expect ( "Route that we sent via spontaneously grew invalid keys in the middle of it?" ) ;
671
- if let Some ( ( network_update, short_channel_id, payment_retryable ) ) = res {
671
+ if let Some ( ( network_update, short_channel_id, recipient_rejected ) ) = res {
672
672
DecodedOnionFailure {
673
- network_update, short_channel_id, payment_retryable,
673
+ network_update, short_channel_id, payment_retryable : !recipient_rejected ,
674
674
#[ cfg( test) ]
675
675
onion_error_code : error_code_ret,
676
676
#[ cfg( test) ]
0 commit comments