]> git.bitcoin.ninja Git - rust-lightning/commit
Change the directed history tracker's storage of its direction
authorMatt Corallo <git@bluematt.me>
Sat, 9 Dec 2023 04:30:08 +0000 (04:30 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 19 Aug 2024 14:25:58 +0000 (14:25 +0000)
commitc0cc30e874e22575cc258e53a15ebda6b75ecdb1
treec4989403fb2a9441b8896850dd8b6cec28710bfc
parent3bd81403018c16b6d1e2586788630624563efdbb
Change the directed history tracker's storage of its direction

Rather than storing the two direction's buckets in
`HistoricalMinMaxBuckets` (renamed
`DirectedHistoricalLiquidityTracker`), we store a single reference
to the `HistoricalLiquidityTracker` as well as the direction bool.

This will allow us in the next commit to reference fields in the
`HistoricalLiquidityTracker` aside from the two directions.
lightning/src/routing/scoring.rs