Skip to content

Commit

Permalink
Reduce default HL
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Dec 18, 2024
1 parent c0fe8dc commit e4ec900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightning/src/routing/scoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ pub struct ProbabilisticScoringDecayParameters {
/// liquidity bounds are 200,000 sats and 600,000 sats, after this amount of time the upper
/// and lower liquidity bounds will be decayed to 100,000 and 800,000 sats.
///
/// Default value: 6 hours
/// Default value: 30 minutes
///
/// # Note
///
Expand All @@ -771,7 +771,7 @@ pub struct ProbabilisticScoringDecayParameters {
impl Default for ProbabilisticScoringDecayParameters {
fn default() -> Self {
Self {
liquidity_offset_half_life: Duration::from_secs(6 * 60 * 60),
liquidity_offset_half_life: Duration::from_secs(30 * 60),
historical_no_updates_half_life: Duration::from_secs(60 * 60 * 24 * 14),
}
}
Expand All @@ -781,7 +781,7 @@ impl Default for ProbabilisticScoringDecayParameters {
impl ProbabilisticScoringDecayParameters {
fn zero_penalty() -> Self {
Self {
liquidity_offset_half_life: Duration::from_secs(6 * 60 * 60),
liquidity_offset_half_life: Duration::from_secs(30 * 60),
historical_no_updates_half_life: Duration::from_secs(60 * 60 * 24 * 14),
}
}
Expand Down

0 comments on commit e4ec900

Please sign in to comment.