]> 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>
Wed, 17 Jul 2024 14:36:48 +0000 (14:36 +0000)
commitaa6fecba9532790d7daf72750f386aedbd49aba9
treee072f923945ebdf2d7cbf89ea71b1af084610321
parente5b5c80fa5da594ebdb75aea3e2f78a39e0d5a9f
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