@@ -533,7 +533,7 @@ pub struct ProbabilisticScoringParameters {
533
533
/// payments. This knowledge is decayed over time based on [`liquidity_offset_half_life`]. The
534
534
/// penalty is effectively limited to `2 * liquidity_penalty_multiplier_msat`.
535
535
///
536
- /// Default value: 10 ,000 msat
536
+ /// Default value: 40 ,000 msat
537
537
///
538
538
/// [`liquidity_offset_half_life`]: Self::liquidity_offset_half_life
539
539
pub liquidity_penalty_multiplier_msat : u64 ,
@@ -603,7 +603,7 @@ impl Default for ProbabilisticScoringParameters {
603
603
fn default ( ) -> Self {
604
604
Self {
605
605
base_penalty_msat : 500 ,
606
- liquidity_penalty_multiplier_msat : 10_000 ,
606
+ liquidity_penalty_multiplier_msat : 40_000 ,
607
607
liquidity_offset_half_life : Duration :: from_secs ( 3600 ) ,
608
608
}
609
609
}
@@ -2051,16 +2051,16 @@ mod tests {
2051
2051
let target = target_node_id ( ) ;
2052
2052
2053
2053
let params = ProbabilisticScoringParameters {
2054
- base_penalty_msat : 0 , ..Default :: default ( )
2054
+ base_penalty_msat : 0 , liquidity_penalty_multiplier_msat : 1_000 , ..Default :: default ( )
2055
2055
} ;
2056
2056
let scorer = ProbabilisticScorer :: new ( params, & network_graph) ;
2057
- assert_eq ! ( scorer. channel_penalty_msat( 42 , 128 , 1_024 , & source, & target) , 585 ) ;
2057
+ assert_eq ! ( scorer. channel_penalty_msat( 42 , 128 , 1_024 , & source, & target) , 58 ) ;
2058
2058
2059
2059
let params = ProbabilisticScoringParameters {
2060
- base_penalty_msat : 500 , ..Default :: default ( )
2060
+ base_penalty_msat : 500 , liquidity_penalty_multiplier_msat : 1_000 , ..Default :: default ( )
2061
2061
} ;
2062
2062
let scorer = ProbabilisticScorer :: new ( params, & network_graph) ;
2063
- assert_eq ! ( scorer. channel_penalty_msat( 42 , 128 , 1_024 , & source, & target) , 1085 ) ;
2063
+ assert_eq ! ( scorer. channel_penalty_msat( 42 , 128 , 1_024 , & source, & target) , 558 ) ;
2064
2064
}
2065
2065
2066
2066
#[ test]
@@ -2075,7 +2075,7 @@ mod tests {
2075
2075
let scorer = ProbabilisticScorer :: new ( params, & network_graph) ;
2076
2076
assert_eq ! (
2077
2077
scorer. channel_penalty_msat( 42 , u64 :: max_value( ) , u64 :: max_value( ) , & source, & target) ,
2078
- 20_000 ,
2078
+ 80_000 ,
2079
2079
) ;
2080
2080
}
2081
2081
}
0 commit comments