@@ -367,7 +367,7 @@ pub struct ProbabilisticScoringParameters {
367
367
/// treat such nodes preferentially and hence create an incentive to restrict
368
368
/// `htlc_maximum_msat`.
369
369
///
370
- /// Default value: 10000 msat
370
+ /// Default value: 500 msat
371
371
pub anti_probing_penalty_msat : u64 ,
372
372
}
373
373
@@ -481,7 +481,7 @@ impl Default for ProbabilisticScoringParameters {
481
481
liquidity_penalty_multiplier_msat : 40_000 ,
482
482
liquidity_offset_half_life : Duration :: from_secs ( 3600 ) ,
483
483
amount_penalty_multiplier_msat : 256 ,
484
- anti_probing_penalty_msat : 10_000 ,
484
+ anti_probing_penalty_msat : 500 ,
485
485
}
486
486
}
487
487
}
@@ -2134,7 +2134,7 @@ mod tests {
2134
2134
let source = source_node_id ( ) ;
2135
2135
let target = target_node_id ( ) ;
2136
2136
let params = ProbabilisticScoringParameters {
2137
- anti_probing_penalty_msat : 10_000 ,
2137
+ anti_probing_penalty_msat : 500 ,
2138
2138
..ProbabilisticScoringParameters :: zero_penalty ( )
2139
2139
} ;
2140
2140
let scorer = ProbabilisticScorer :: new ( params, & network_graph, & logger) ;
@@ -2153,15 +2153,15 @@ mod tests {
2153
2153
inflight_htlc_msat : 0 ,
2154
2154
effective_capacity : EffectiveCapacity :: Total { capacity_msat : 1_024_000 , htlc_maximum_msat : Some ( 1_024_000 ) } ,
2155
2155
} ;
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 ) ;
2157
2157
2158
2158
// Check we receive anti-probing penalty for htlc_maximum_msat == channel_capacity/2.
2159
2159
let usage = ChannelUsage {
2160
2160
amount_msat : 512_000 ,
2161
2161
inflight_htlc_msat : 0 ,
2162
2162
effective_capacity : EffectiveCapacity :: Total { capacity_msat : 1_024_000 , htlc_maximum_msat : Some ( 512_000 ) } ,
2163
2163
} ;
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 ) ;
2165
2165
2166
2166
// Check we receive no anti-probing penalty for htlc_maximum_msat == channel_capacity/2 - 1.
2167
2167
let usage = ChannelUsage {
0 commit comments