Skip to content

Commit d20dcd3

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 342ce2f commit d20dcd3

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
@@ -113,7 +113,7 @@ const ONION_MESSAGE_HANDLER_TIMER: u64 = 1;
113113
const NETWORK_PRUNE_TIMER: u64 = 60 * 60;
114114

115115
#[cfg(not(test))]
116-
const SCORER_PERSIST_TIMER: u64 = 60 * 60;
116+
const SCORER_PERSIST_TIMER: u64 = 60 * 5;
117117
#[cfg(test)]
118118
const SCORER_PERSIST_TIMER: u64 = 1;
119119

0 commit comments

Comments
 (0)