]> git.bitcoin.ninja Git - rust-lightning/commit
Add a base penalty to ProbabilisticScorer
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 22 Mar 2022 00:11:48 +0000 (19:11 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 25 Mar 2022 14:12:49 +0000 (09:12 -0500)
commit5b36449c5950a78ae1857985c8ce309cdf091cc9
treeda22a00771e757d0fedaa46e403dcd5af98e404f
parent188f919a15751f9549f8fcd273abcb4b8ddd4464
Add a base penalty to ProbabilisticScorer

ProbabilisticScorer tends to prefer longer routes to shorter ones. Make
the default scoring behavior include a customizable base penalty to
avoid longer routes.
lightning/src/routing/scoring.rs