]> git.bitcoin.ninja Git - rust-lightning/commit
Use log approximation in ProbabilisticScorer
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 3 Mar 2022 19:52:39 +0000 (11:52 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 9 Mar 2022 05:22:38 +0000 (23:22 -0600)
commit7f83c559b4b6273f396aa0c3a0fa640553fbe327
tree1e3e5a31221bf3c1c3a26d7f8b20e611cb5c430a
parent5e86bbf97030c69b0118d1bef39554febfb1cbef
Use log approximation in ProbabilisticScorer

Since f64::log10 exists in std but not core, unconditionally use log
approximation so --feature=no-std will compile.
lightning/src/routing/scoring.rs