]> git.bitcoin.ninja Git - rust-lightning/commit
Move max penalty cap in ProbabilisticScorer
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 25 Mar 2022 14:35:35 +0000 (09:35 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 25 Mar 2022 14:35:35 +0000 (09:35 -0500)
commitc6348cb552c5f311521e088990f4c1644d2407cb
tree4ac8b78d1e1df814c807068338a4a72e40e35a01
parent4ea18e323292ddee00c84cad8bfdb3bb2bc64306
Move max penalty cap in ProbabilisticScorer

This reduce a branch in the 0 and u6::max_value cases.
lightning/src/routing/scoring.rs