@@ -367,7 +367,7 @@ pub struct ProbabilisticScoringParameters {
367367 /// treat such nodes preferentially and hence create an incentive to restrict
368368 /// `htlc_maximum_msat`.
369369 ///
370- /// Default value: 10000 msat
370+ /// Default value: 500 msat
371371 pub anti_probing_penalty_msat : u64 ,
372372}
373373
@@ -481,7 +481,7 @@ impl Default for ProbabilisticScoringParameters {
481481 liquidity_penalty_multiplier_msat : 40_000 ,
482482 liquidity_offset_half_life : Duration :: from_secs ( 3600 ) ,
483483 amount_penalty_multiplier_msat : 256 ,
484- anti_probing_penalty_msat : 10_000 ,
484+ anti_probing_penalty_msat : 500 ,
485485 }
486486 }
487487}
@@ -2134,7 +2134,7 @@ mod tests {
21342134 let source = source_node_id ( ) ;
21352135 let target = target_node_id ( ) ;
21362136 let params = ProbabilisticScoringParameters {
2137- anti_probing_penalty_msat : 10_000 ,
2137+ anti_probing_penalty_msat : 500 ,
21382138 ..ProbabilisticScoringParameters :: zero_penalty ( )
21392139 } ;
21402140 let scorer = ProbabilisticScorer :: new ( params, & network_graph, & logger) ;
@@ -2153,15 +2153,15 @@ mod tests {
21532153 inflight_htlc_msat : 0 ,
21542154 effective_capacity : EffectiveCapacity :: Total { capacity_msat : 1_024_000 , htlc_maximum_msat : Some ( 1_024_000 ) } ,
21552155 } ;
2156- assert_eq ! ( scorer. channel_penalty_msat( 42 , & source, & target, usage) , 10_000 ) ;
2156+ assert_eq ! ( scorer. channel_penalty_msat( 42 , & source, & target, usage) , 500 ) ;
21572157
21582158 // Check we receive anti-probing penalty for htlc_maximum_msat == channel_capacity/2.
21592159 let usage = ChannelUsage {
21602160 amount_msat : 512_000 ,
21612161 inflight_htlc_msat : 0 ,
21622162 effective_capacity : EffectiveCapacity :: Total { capacity_msat : 1_024_000 , htlc_maximum_msat : Some ( 512_000 ) } ,
21632163 } ;
2164- assert_eq ! ( scorer. channel_penalty_msat( 42 , & source, & target, usage) , 10_000 ) ;
2164+ assert_eq ! ( scorer. channel_penalty_msat( 42 , & source, & target, usage) , 500 ) ;
21652165
21662166 // Check we receive no anti-probing penalty for htlc_maximum_msat == channel_capacity/2 - 1.
21672167 let usage = ChannelUsage {
0 commit comments