Skip to content

Commit 4cc9ad3

Browse files
committed
Make scorer decay + persistence more frequent
There's some edge cases in our scoring when the information really should be decayed but hasn't yet been prior to an update. Rather than try to fix them exactly, we instead decay the scorer a bit more often, which largely solves them but also gives us a bit more accurate bounds on our channels, allowing us to reuse channels at a similar amount to what just failed immediately, but at a substantial penalty.
1 parent a4227e2 commit 4cc9ad3

File tree

1 file changed

+1
-1
lines changed
  • lightning-background-processor/src

1 file changed

+1
-1
lines changed

lightning-background-processor/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const PING_TIMER: u64 = 1;
108108
const NETWORK_PRUNE_TIMER: u64 = 60 * 60;
109109

110110
#[cfg(not(test))]
111-
const SCORER_PERSIST_TIMER: u64 = 60 * 60;
111+
const SCORER_PERSIST_TIMER: u64 = 60 * 5;
112112
#[cfg(test)]
113113
const SCORER_PERSIST_TIMER: u64 = 1;
114114

0 commit comments

Comments
 (0)