Increase the default `liquidity_offset_half_life` to six hours 2022-10-better-liq-halflife-docs
authorMatt Corallo <git@bluematt.me>
Wed, 5 Oct 2022 19:23:56 +0000 (19:23 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 11 Oct 2022 18:25:43 +0000 (18:25 +0000)
commit9e8496659f5ae0bf6f29c08b16d7ab18df3e37b4
tree324763055fe8c7a6db169929d377ff19c833c7b2
parentfe531c583db2739bee90a8a78096065c16d372d2
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.
lightning/src/routing/scoring.rs