Pipe `Duration`-based time information through scoring pipeline
authorMatt Corallo <git@bluematt.me>
Mon, 9 Oct 2023 01:15:18 +0000 (01:15 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 13 Dec 2023 23:26:09 +0000 (23:26 +0000)
commitd54c93065acedba911d04ef8dcc48e199c452406
tree94cfcee85d1810a83d8f4c9e0eb33871dfc2c069
parent5ac68c1af3368e8b54e3742527d5753303e65ef7
Pipe `Duration`-based time information through scoring pipeline

In the coming commits, the `T: Time` bound on `ProbabilisticScorer`
will be removed. In order to enable that, we need to pass the
current time (as a `Duration` since the unix epoch) through the
score updating pipeline, allowing us to keep the
`*last_updated_time` fields up-to-date as we go.
lightning/src/routing/scoring.rs