Move to a constant for "bucket one" in the scoring buckets 2023-04-expose-success-prob
authorMatt Corallo <git@bluematt.me>
Thu, 7 Sep 2023 22:34:30 +0000 (22:34 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Sep 2023 17:27:31 +0000 (17:27 +0000)
commit94376424c03732e84fb9a2e8f529a1a268accae5
tree85a05b42befdeb78a3df3979e085179dd3aa1227
parentf7f524f19a29652296e1af507cad9e9b9749f6fc
Move to a constant for "bucket one" in the scoring buckets

Scoring buckets are stored as fixed point ints, with a 5-bit
fractional part (i.e. a value of 1.0 is stored as "32"). Now that
we also have 32 buckets, this leads to the codebase having many
references to 32 which could reasonably be confused for each other.

Thus, we add a constant here for the value 1.0 in our fixed-point
scheme.
lightning/src/routing/scoring.rs