]> git.bitcoin.ninja Git - rust-lightning/commit
Use `Duration` based time info in scoring rather than `Time`
authorMatt Corallo <git@bluematt.me>
Mon, 9 Oct 2023 01:44:33 +0000 (01:44 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 13 Dec 2023 23:26:09 +0000 (23:26 +0000)
commit22888425f7bfb5a9ac9ffd32906f1a01a035021b
tree5f437e70a934b1b85623afbb05f91b5bd485c0da
parentd54c93065acedba911d04ef8dcc48e199c452406
Use `Duration` based time info in scoring rather than `Time`

In the coming commits, the `T: Time` bound on `ProbabilisticScorer`
will be removed. In order to enable that, we need to switch over to
using the `ScoreUpdate`-provided current time (as a `Duration`
since the unix epoch), making the `T` bound entirely unused.
lightning/src/routing/scoring.rs