@@ -206,7 +206,7 @@ struct PathBuildingHop {
206
206
/// decrease as well. Thus, we have to explicitly track which nodes have been processed and
207
207
/// avoid processing them again.
208
208
was_processed : bool ,
209
- #[ cfg( test) ]
209
+ #[ cfg( any ( test, feature = "fuzztarget" ) ) ]
210
210
// In tests, we apply further sanity checks on cases where we skip nodes we already processed
211
211
// to ensure it is specifically in cases where the fee has gone down because of a decrease in
212
212
// value_contribution_msat, which requires tracking it here. See comments below where it is
@@ -628,7 +628,7 @@ pub fn get_route<L: Deref>(our_node_id: &PublicKey, network: &NetworkGraph, paye
628
628
htlc_minimum_msat: $directional_info. htlc_minimum_msat,
629
629
path_htlc_minimum_msat,
630
630
was_processed: false ,
631
- #[ cfg( test) ]
631
+ #[ cfg( any ( test, feature = "fuzztarget" ) ) ]
632
632
value_contribution_msat,
633
633
}
634
634
} ) ;
@@ -721,12 +721,12 @@ pub fn get_route<L: Deref>(our_node_id: &PublicKey, network: &NetworkGraph, paye
721
721
old_entry. channel_fees = $directional_info. fees;
722
722
old_entry. htlc_minimum_msat = $directional_info. htlc_minimum_msat;
723
723
old_entry. path_htlc_minimum_msat = path_htlc_minimum_msat;
724
- #[ cfg( test) ]
724
+ #[ cfg( any ( test, feature = "fuzztarget" ) ) ]
725
725
{
726
726
old_entry. value_contribution_msat = value_contribution_msat;
727
727
}
728
728
} else if old_entry. was_processed && new_cost < old_cost {
729
- #[ cfg( test) ]
729
+ #[ cfg( any ( test, feature = "fuzztarget" ) ) ]
730
730
{
731
731
// If we're skipping processing a node which was previously
732
732
// processed even though we found another path to it with a
0 commit comments