Skip to content

Commit cc90734

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 91d3b83 commit cc90734

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const ONION_MESSAGE_HANDLER_TIMER: u64 = 1;
114114
const NETWORK_PRUNE_TIMER: u64 = 60 * 60;
115115

116116
#[cfg(not(test))]
117-
const SCORER_PERSIST_TIMER: u64 = 60 * 60;
117+
const SCORER_PERSIST_TIMER: u64 = 60 * 5;
118118
#[cfg(test)]
119119
const SCORER_PERSIST_TIMER: u64 = 1;
120120

0 commit comments

Comments
 (0)