Skip to content

Commit 8702f17

Browse files
committed
Increase the default liquidity_offset_half_life to six hours
Even at relatively high payment volumes, decaying knowledge of each individual channel every hour causes aggressive retrying of channels as we quickly forget the state of a channel. Even with the historical tracker, this isn't fully remedied, as we'll track the history bounds with the decayed value. Instead, we decay every six hours here, reducing how often we'll retry a channel due to decay. In addition to this, the decay likely needs to be substantially more linear, as tracked in #1752.
1 parent 56d91c2 commit 8702f17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/routing/scoring.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ pub struct ProbabilisticScoringParameters {
411411
/// the available liquidity is halved and the upper-bound moves half-way to the channel's total
412412
/// capacity.
413413
///
414-
/// Default value: 1 hour
414+
/// Default value: 6 hours
415415
///
416416
/// # Note
417417
///
@@ -596,7 +596,7 @@ impl ProbabilisticScoringParameters {
596596
base_penalty_msat: 0,
597597
base_penalty_amount_multiplier_msat: 0,
598598
liquidity_penalty_multiplier_msat: 0,
599-
liquidity_offset_half_life: Duration::from_secs(3600),
599+
liquidity_offset_half_life: Duration::from_secs(6 * 60 * 60),
600600
liquidity_penalty_amount_multiplier_msat: 0,
601601
manual_node_penalties: HashMap::new(),
602602
anti_probing_penalty_msat: 0,
@@ -619,7 +619,7 @@ impl Default for ProbabilisticScoringParameters {
619619
base_penalty_msat: 500,
620620
base_penalty_amount_multiplier_msat: 8192,
621621
liquidity_penalty_multiplier_msat: 40_000,
622-
liquidity_offset_half_life: Duration::from_secs(3600),
622+
liquidity_offset_half_life: Duration::from_secs(6 * 60 * 60),
623623
liquidity_penalty_amount_multiplier_msat: 256,
624624
manual_node_penalties: HashMap::new(),
625625
anti_probing_penalty_msat: 250,

0 commit comments

Comments
 (0)