@@ -493,7 +493,8 @@ where L::Target: Logger {
493493 decay_params : ProbabilisticScoringDecayParameters ,
494494 network_graph : G ,
495495 logger : L ,
496- channel_liquidities : HashMap < u64 , ChannelLiquidity < T > > ,
496+ channel_liquidities : HashMap < u64 , ChannelLiquidity > ,
497+ _unused_time : core:: marker:: PhantomData < T > ,
497498}
498499
499500/// Parameters for configuring [`ProbabilisticScorer`].
@@ -797,7 +798,7 @@ impl ProbabilisticScoringDecayParameters {
797798/// Direction is defined in terms of [`NodeId`] partial ordering, where the source node is the
798799/// first node in the ordering of the channel's counterparties. Thus, swapping the two liquidity
799800/// offset fields gives the opposite direction.
800- struct ChannelLiquidity < T : Time > {
801+ struct ChannelLiquidity {
801802 /// Lower channel liquidity bound in terms of an offset from zero.
802803 min_liquidity_offset_msat : u64 ,
803804
@@ -807,23 +808,23 @@ struct ChannelLiquidity<T: Time> {
807808 min_liquidity_offset_history : HistoricalBucketRangeTracker ,
808809 max_liquidity_offset_history : HistoricalBucketRangeTracker ,
809810
810- /// Time when the liquidity bounds were last modified.
811- last_updated : T ,
811+ /// Time when the liquidity bounds were last modified as an offset since the unix epoch .
812+ last_updated : Duration ,
812813
813- /// Time when the historical liquidity bounds were last modified.
814- offset_history_last_updated : T ,
814+ /// Time when the historical liquidity bounds were last modified as an offset against the unix
815+ /// epoch.
816+ offset_history_last_updated : Duration ,
815817}
816818
817819/// A snapshot of [`ChannelLiquidity`] in one direction assuming a certain channel capacity and
818820/// decayed with a given half life.
819- struct DirectedChannelLiquidity < L : Deref < Target = u64 > , BRT : Deref < Target = HistoricalBucketRangeTracker > , T : Time , U : Deref < Target = T > > {
821+ struct DirectedChannelLiquidity < L : Deref < Target = u64 > , BRT : Deref < Target = HistoricalBucketRangeTracker > , T : Deref < Target = Duration > > {
820822 min_liquidity_offset_msat : L ,
821823 max_liquidity_offset_msat : L ,
822824 liquidity_history : HistoricalMinMaxBuckets < BRT > ,
823825 capacity_msat : u64 ,
824- last_updated : U ,
825- offset_history_last_updated : U ,
826- now : T ,
826+ last_updated : T ,
827+ offset_history_last_updated : T ,
827828 decay_params : ProbabilisticScoringDecayParameters ,
828829}
829830
@@ -836,11 +837,12 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ProbabilisticScorerU
836837 network_graph,
837838 logger,
838839 channel_liquidities : HashMap :: new ( ) ,
840+ _unused_time : core:: marker:: PhantomData ,
839841 }
840842 }
841843
842844 #[ cfg( test) ]
843- fn with_channel ( mut self , short_channel_id : u64 , liquidity : ChannelLiquidity < T > ) -> Self {
845+ fn with_channel ( mut self , short_channel_id : u64 , liquidity : ChannelLiquidity ) -> Self {
844846 assert ! ( self . channel_liquidities. insert( short_channel_id, liquidity) . is_none( ) ) ;
845847 self
846848 }
@@ -993,24 +995,23 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ProbabilisticScorerU
993995 }
994996}
995997
996- impl < T : Time > ChannelLiquidity < T > {
997- #[ inline]
998- fn new ( ) -> Self {
998+ impl ChannelLiquidity {
999+ fn new ( last_updated : Duration ) -> Self {
9991000 Self {
10001001 min_liquidity_offset_msat : 0 ,
10011002 max_liquidity_offset_msat : 0 ,
10021003 min_liquidity_offset_history : HistoricalBucketRangeTracker :: new ( ) ,
10031004 max_liquidity_offset_history : HistoricalBucketRangeTracker :: new ( ) ,
1004- last_updated : T :: now ( ) ,
1005- offset_history_last_updated : T :: now ( ) ,
1005+ last_updated,
1006+ offset_history_last_updated : last_updated ,
10061007 }
10071008 }
10081009
10091010 /// Returns a view of the channel liquidity directed from `source` to `target` assuming
10101011 /// `capacity_msat`.
10111012 fn as_directed (
10121013 & self , source : & NodeId , target : & NodeId , capacity_msat : u64 , decay_params : ProbabilisticScoringDecayParameters
1013- ) -> DirectedChannelLiquidity < & u64 , & HistoricalBucketRangeTracker , T , & T > {
1014+ ) -> DirectedChannelLiquidity < & u64 , & HistoricalBucketRangeTracker , & Duration > {
10141015 let ( min_liquidity_offset_msat, max_liquidity_offset_msat, min_liquidity_offset_history, max_liquidity_offset_history) =
10151016 if source < target {
10161017 ( & self . min_liquidity_offset_msat , & self . max_liquidity_offset_msat ,
@@ -1030,7 +1031,6 @@ impl<T: Time> ChannelLiquidity<T> {
10301031 capacity_msat,
10311032 last_updated : & self . last_updated ,
10321033 offset_history_last_updated : & self . offset_history_last_updated ,
1033- now : T :: now ( ) ,
10341034 decay_params : decay_params,
10351035 }
10361036 }
@@ -1039,7 +1039,7 @@ impl<T: Time> ChannelLiquidity<T> {
10391039 /// `capacity_msat`.
10401040 fn as_directed_mut (
10411041 & mut self , source : & NodeId , target : & NodeId , capacity_msat : u64 , decay_params : ProbabilisticScoringDecayParameters
1042- ) -> DirectedChannelLiquidity < & mut u64 , & mut HistoricalBucketRangeTracker , T , & mut T > {
1042+ ) -> DirectedChannelLiquidity < & mut u64 , & mut HistoricalBucketRangeTracker , & mut Duration > {
10431043 let ( min_liquidity_offset_msat, max_liquidity_offset_msat, min_liquidity_offset_history, max_liquidity_offset_history) =
10441044 if source < target {
10451045 ( & mut self . min_liquidity_offset_msat , & mut self . max_liquidity_offset_msat ,
@@ -1059,7 +1059,6 @@ impl<T: Time> ChannelLiquidity<T> {
10591059 capacity_msat,
10601060 last_updated : & mut self . last_updated ,
10611061 offset_history_last_updated : & mut self . offset_history_last_updated ,
1062- now : T :: now ( ) ,
10631062 decay_params : decay_params,
10641063 }
10651064 }
@@ -1069,7 +1068,7 @@ impl<T: Time> ChannelLiquidity<T> {
10691068 ) -> u64 {
10701069 let half_life = decay_params. liquidity_offset_half_life . as_secs_f64 ( ) ;
10711070 if half_life != 0.0 {
1072- let elapsed_time = T :: now ( ) . duration_since ( self . last_updated ) . as_secs_f64 ( ) ;
1071+ let elapsed_time = duration_since_epoch . saturating_sub ( self . last_updated ) . as_secs_f64 ( ) ;
10731072 ( ( offset as f64 ) * powf64 ( 0.5 , elapsed_time / half_life) ) as u64
10741073 } else {
10751074 0
@@ -1158,7 +1157,8 @@ fn success_probability(
11581157 ( numerator, denominator)
11591158}
11601159
1161- impl < L : Deref < Target = u64 > , BRT : Deref < Target = HistoricalBucketRangeTracker > , T : Time , U : Deref < Target = T > > DirectedChannelLiquidity < L , BRT , T , U > {
1160+ impl < L : Deref < Target = u64 > , BRT : Deref < Target = HistoricalBucketRangeTracker > , T : Deref < Target = Duration > >
1161+ DirectedChannelLiquidity < L , BRT , T > {
11621162 /// Returns a liquidity penalty for routing the given HTLC `amount_msat` through the channel in
11631163 /// this direction.
11641164 fn penalty_msat ( & self , amount_msat : u64 , score_params : & ProbabilisticScoringFeeParameters ) -> u64 {
@@ -1266,7 +1266,8 @@ impl<L: Deref<Target = u64>, BRT: Deref<Target = HistoricalBucketRangeTracker>,
12661266 }
12671267}
12681268
1269- impl < L : DerefMut < Target = u64 > , BRT : DerefMut < Target = HistoricalBucketRangeTracker > , T : Time , U : DerefMut < Target = T > > DirectedChannelLiquidity < L , BRT , T , U > {
1269+ impl < L : DerefMut < Target = u64 > , BRT : DerefMut < Target = HistoricalBucketRangeTracker > , T : DerefMut < Target = Duration > >
1270+ DirectedChannelLiquidity < L , BRT , T > {
12701271 /// Adjusts the channel liquidity balance bounds when failing to route `amount_msat`.
12711272 fn failed_at_channel < Log : Deref > (
12721273 & mut self , amount_msat : u64 , duration_since_epoch : Duration , chan_descr : fmt:: Arguments , logger : & Log
@@ -1312,7 +1313,9 @@ impl<L: DerefMut<Target = u64>, BRT: DerefMut<Target = HistoricalBucketRangeTrac
13121313 /// state"), we allow the caller to set an offset applied to our liquidity bounds which
13131314 /// represents the amount of the successful payment we just made.
13141315 fn update_history_buckets ( & mut self , bucket_offset_msat : u64 , duration_since_epoch : Duration ) {
1315- let half_lives = self . now . duration_since ( * self . offset_history_last_updated ) . as_secs ( )
1316+ let half_lives =
1317+ duration_since_epoch. checked_sub ( * self . offset_history_last_updated )
1318+ . unwrap_or ( Duration :: ZERO ) . as_secs ( )
13161319 . checked_div ( self . decay_params . historical_no_updates_half_life . as_secs ( ) )
13171320 . map ( |v| v. try_into ( ) . unwrap_or ( u32:: max_value ( ) ) ) . unwrap_or ( u32:: max_value ( ) ) ;
13181321 self . liquidity_history . min_liquidity_offset_history . time_decay_data ( half_lives) ;
@@ -1326,29 +1329,25 @@ impl<L: DerefMut<Target = u64>, BRT: DerefMut<Target = HistoricalBucketRangeTrac
13261329 self . liquidity_history . max_liquidity_offset_history . track_datapoint (
13271330 max_liquidity_offset_msat. saturating_sub ( bucket_offset_msat) , self . capacity_msat
13281331 ) ;
1329- * self . offset_history_last_updated = self . now ;
1332+ * self . offset_history_last_updated = duration_since_epoch ;
13301333 }
13311334
13321335 /// Adjusts the lower bound of the channel liquidity balance in this direction.
13331336 fn set_min_liquidity_msat ( & mut self , amount_msat : u64 , duration_since_epoch : Duration ) {
13341337 * self . min_liquidity_offset_msat = amount_msat;
1335- * self . max_liquidity_offset_msat = if amount_msat > self . max_liquidity_msat ( ) {
1336- 0
1337- } else {
1338- self . decayed_offset_msat ( * self . max_liquidity_offset_msat )
1339- } ;
1340- * self . last_updated = self . now ;
1338+ if amount_msat > self . max_liquidity_msat ( ) {
1339+ * self . max_liquidity_offset_msat = 0 ;
1340+ }
1341+ * self . last_updated = duration_since_epoch;
13411342 }
13421343
13431344 /// Adjusts the upper bound of the channel liquidity balance in this direction.
13441345 fn set_max_liquidity_msat ( & mut self , amount_msat : u64 , duration_since_epoch : Duration ) {
13451346 * self . max_liquidity_offset_msat = self . capacity_msat . checked_sub ( amount_msat) . unwrap_or ( 0 ) ;
1346- * self . min_liquidity_offset_msat = if amount_msat < self . min_liquidity_msat ( ) {
1347- 0
1348- } else {
1349- self . decayed_offset_msat ( * self . min_liquidity_offset_msat )
1350- } ;
1351- * self . last_updated = self . now ;
1347+ if amount_msat < * self . min_liquidity_offset_msat {
1348+ * self . min_liquidity_offset_msat = 0 ;
1349+ }
1350+ * self . last_updated = duration_since_epoch;
13521351 }
13531352}
13541353
@@ -1395,7 +1394,7 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ScoreLookUp for Prob
13951394 let capacity_msat = usage. effective_capacity . as_msat ( ) ;
13961395 self . channel_liquidities
13971396 . get ( & scid)
1398- . unwrap_or ( & ChannelLiquidity :: new ( ) )
1397+ . unwrap_or ( & ChannelLiquidity :: new ( Duration :: ZERO ) )
13991398 . as_directed ( & source, & target, capacity_msat, self . decay_params )
14001399 . penalty_msat ( amount_msat, score_params)
14011400 . saturating_add ( anti_probing_penalty_msat)
@@ -1425,14 +1424,14 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ScoreUpdate for Prob
14251424 if at_failed_channel {
14261425 self . channel_liquidities
14271426 . entry ( hop. short_channel_id )
1428- . or_insert_with ( ChannelLiquidity :: new)
1427+ . or_insert_with ( || ChannelLiquidity :: new ( duration_since_epoch ) )
14291428 . as_directed_mut ( source, & target, capacity_msat, self . decay_params )
14301429 . failed_at_channel ( amount_msat, duration_since_epoch,
14311430 format_args ! ( "SCID {}, towards {:?}" , hop. short_channel_id, target) , & self . logger ) ;
14321431 } else {
14331432 self . channel_liquidities
14341433 . entry ( hop. short_channel_id )
1435- . or_insert_with ( ChannelLiquidity :: new)
1434+ . or_insert_with ( || ChannelLiquidity :: new ( duration_since_epoch ) )
14361435 . as_directed_mut ( source, & target, capacity_msat, self . decay_params )
14371436 . failed_downstream ( amount_msat, duration_since_epoch,
14381437 format_args ! ( "SCID {}, towards {:?}" , hop. short_channel_id, target) , & self . logger ) ;
@@ -1461,7 +1460,7 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ScoreUpdate for Prob
14611460 let capacity_msat = channel. effective_capacity ( ) . as_msat ( ) ;
14621461 self . channel_liquidities
14631462 . entry ( hop. short_channel_id )
1464- . or_insert_with ( ChannelLiquidity :: new)
1463+ . or_insert_with ( || ChannelLiquidity :: new ( duration_since_epoch ) )
14651464 . as_directed_mut ( source, & target, capacity_msat, self . decay_params )
14661465 . successful ( amount_msat, duration_since_epoch,
14671466 format_args ! ( "SCID {}, towards {:?}" , hop. short_channel_id, target) , & self . logger ) ;
@@ -1487,10 +1486,10 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ScoreUpdate for Prob
14871486 liquidity. decayed_offset ( liquidity. min_liquidity_offset_msat , duration_since_epoch, decay_params) ;
14881487 liquidity. max_liquidity_offset_msat =
14891488 liquidity. decayed_offset ( liquidity. max_liquidity_offset_msat , duration_since_epoch, decay_params) ;
1490- liquidity. last_updated = T :: now ( ) ;
1489+ liquidity. last_updated = duration_since_epoch ;
14911490
14921491 let elapsed_time =
1493- T :: now ( ) . duration_since ( liquidity. offset_history_last_updated ) ;
1492+ duration_since_epoch . saturating_sub ( liquidity. offset_history_last_updated ) ;
14941493 if elapsed_time > decay_params. historical_no_updates_half_life {
14951494 let half_life = decay_params. historical_no_updates_half_life . as_secs_f64 ( ) ;
14961495 if half_life != 0.0 {
@@ -1501,7 +1500,7 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ScoreUpdate for Prob
15011500 for bucket in liquidity. max_liquidity_offset_history . buckets . iter_mut ( ) {
15021501 * bucket = ( ( * bucket as u64 ) * 1024 / divisor) as u16 ;
15031502 }
1504- liquidity. offset_history_last_updated = T :: now ( ) ;
1503+ liquidity. offset_history_last_updated = duration_since_epoch ;
15051504 }
15061505 }
15071506 liquidity. min_liquidity_offset_msat != 0 || liquidity. max_liquidity_offset_msat != 0 ||
@@ -2124,31 +2123,29 @@ ReadableArgs<(ProbabilisticScoringDecayParameters, G, L)> for ProbabilisticScore
21242123 network_graph,
21252124 logger,
21262125 channel_liquidities,
2126+ _unused_time : core:: marker:: PhantomData ,
21272127 } )
21282128 }
21292129}
21302130
2131- impl < T : Time > Writeable for ChannelLiquidity < T > {
2131+ impl Writeable for ChannelLiquidity {
21322132 #[ inline]
21332133 fn write < W : Writer > ( & self , w : & mut W ) -> Result < ( ) , io:: Error > {
2134- let offset_history_duration_since_epoch =
2135- T :: duration_since_epoch ( ) - self . offset_history_last_updated . elapsed ( ) ;
2136- let duration_since_epoch = T :: duration_since_epoch ( ) - self . last_updated . elapsed ( ) ;
21372134 write_tlv_fields ! ( w, {
21382135 ( 0 , self . min_liquidity_offset_msat, required) ,
21392136 // 1 was the min_liquidity_offset_history in octile form
21402137 ( 2 , self . max_liquidity_offset_msat, required) ,
21412138 // 3 was the max_liquidity_offset_history in octile form
2142- ( 4 , duration_since_epoch , required) ,
2139+ ( 4 , self . last_updated , required) ,
21432140 ( 5 , Some ( self . min_liquidity_offset_history) , option) ,
21442141 ( 7 , Some ( self . max_liquidity_offset_history) , option) ,
2145- ( 9 , offset_history_duration_since_epoch , required) ,
2142+ ( 9 , self . offset_history_last_updated , required) ,
21462143 } ) ;
21472144 Ok ( ( ) )
21482145 }
21492146}
21502147
2151- impl < T : Time > Readable for ChannelLiquidity < T > {
2148+ impl Readable for ChannelLiquidity {
21522149 #[ inline]
21532150 fn read < R : Read > ( r : & mut R ) -> Result < Self , DecodeError > {
21542151 let mut min_liquidity_offset_msat = 0 ;
@@ -2157,36 +2154,18 @@ impl<T: Time> Readable for ChannelLiquidity<T> {
21572154 let mut legacy_max_liq_offset_history: Option < LegacyHistoricalBucketRangeTracker > = None ;
21582155 let mut min_liquidity_offset_history: Option < HistoricalBucketRangeTracker > = None ;
21592156 let mut max_liquidity_offset_history: Option < HistoricalBucketRangeTracker > = None ;
2160- let mut duration_since_epoch = Duration :: from_secs ( 0 ) ;
2161- let mut offset_history_duration_since_epoch = None ;
2157+ let mut last_updated = Duration :: from_secs ( 0 ) ;
2158+ let mut offset_history_last_updated = None ;
21622159 read_tlv_fields ! ( r, {
21632160 ( 0 , min_liquidity_offset_msat, required) ,
21642161 ( 1 , legacy_min_liq_offset_history, option) ,
21652162 ( 2 , max_liquidity_offset_msat, required) ,
21662163 ( 3 , legacy_max_liq_offset_history, option) ,
2167- ( 4 , duration_since_epoch , required) ,
2164+ ( 4 , last_updated , required) ,
21682165 ( 5 , min_liquidity_offset_history, option) ,
21692166 ( 7 , max_liquidity_offset_history, option) ,
2170- ( 9 , offset_history_duration_since_epoch , option) ,
2167+ ( 9 , offset_history_last_updated , option) ,
21712168 } ) ;
2172- // On rust prior to 1.60 `Instant::duration_since` will panic if time goes backwards.
2173- // We write `last_updated` as wallclock time even though its ultimately an `Instant` (which
2174- // is a time from a monotonic clock usually represented as an offset against boot time).
2175- // Thus, we have to construct an `Instant` by subtracting the difference in wallclock time
2176- // from the one that was written. However, because `Instant` can panic if we construct one
2177- // in the future, we must handle wallclock time jumping backwards, which we do by simply
2178- // using `Instant::now()` in that case.
2179- let wall_clock_now = T :: duration_since_epoch ( ) ;
2180- let now = T :: now ( ) ;
2181- let last_updated = if wall_clock_now > duration_since_epoch {
2182- now - ( wall_clock_now - duration_since_epoch)
2183- } else { now } ;
2184-
2185- let offset_history_duration_since_epoch =
2186- offset_history_duration_since_epoch. unwrap_or ( duration_since_epoch) ;
2187- let offset_history_last_updated = if wall_clock_now > offset_history_duration_since_epoch {
2188- now - ( wall_clock_now - offset_history_duration_since_epoch)
2189- } else { now } ;
21902169
21912170 if min_liquidity_offset_history. is_none ( ) {
21922171 if let Some ( legacy_buckets) = legacy_min_liq_offset_history {
@@ -2208,7 +2187,7 @@ impl<T: Time> Readable for ChannelLiquidity<T> {
22082187 min_liquidity_offset_history : min_liquidity_offset_history. unwrap ( ) ,
22092188 max_liquidity_offset_history : max_liquidity_offset_history. unwrap ( ) ,
22102189 last_updated,
2211- offset_history_last_updated,
2190+ offset_history_last_updated : offset_history_last_updated . unwrap_or ( last_updated ) ,
22122191 } )
22132192 }
22142193}
@@ -2218,7 +2197,6 @@ mod tests {
22182197 use super :: { ChannelLiquidity , HistoricalBucketRangeTracker , ProbabilisticScoringFeeParameters , ProbabilisticScoringDecayParameters , ProbabilisticScorerUsingTime } ;
22192198 use crate :: blinded_path:: { BlindedHop , BlindedPath } ;
22202199 use crate :: util:: config:: UserConfig ;
2221- use crate :: util:: time:: Time ;
22222200 use crate :: util:: time:: tests:: SinceEpoch ;
22232201
22242202 use crate :: ln:: channelmanager;
@@ -2383,8 +2361,8 @@ mod tests {
23832361 #[ test]
23842362 fn liquidity_bounds_directed_from_lowest_node_id ( ) {
23852363 let logger = TestLogger :: new ( ) ;
2386- let last_updated = SinceEpoch :: now ( ) ;
2387- let offset_history_last_updated = SinceEpoch :: now ( ) ;
2364+ let last_updated = Duration :: ZERO ;
2365+ let offset_history_last_updated = Duration :: ZERO ;
23882366 let network_graph = network_graph ( & logger) ;
23892367 let decay_params = ProbabilisticScoringDecayParameters :: default ( ) ;
23902368 let mut scorer = ProbabilisticScorer :: new ( decay_params, & network_graph, & logger)
@@ -2464,8 +2442,8 @@ mod tests {
24642442 #[ test]
24652443 fn resets_liquidity_upper_bound_when_crossed_by_lower_bound ( ) {
24662444 let logger = TestLogger :: new ( ) ;
2467- let last_updated = SinceEpoch :: now ( ) ;
2468- let offset_history_last_updated = SinceEpoch :: now ( ) ;
2445+ let last_updated = Duration :: ZERO ;
2446+ let offset_history_last_updated = Duration :: ZERO ;
24692447 let network_graph = network_graph ( & logger) ;
24702448 let decay_params = ProbabilisticScoringDecayParameters :: default ( ) ;
24712449 let mut scorer = ProbabilisticScorer :: new ( decay_params, & network_graph, & logger)
@@ -2525,8 +2503,8 @@ mod tests {
25252503 #[ test]
25262504 fn resets_liquidity_lower_bound_when_crossed_by_upper_bound ( ) {
25272505 let logger = TestLogger :: new ( ) ;
2528- let last_updated = SinceEpoch :: now ( ) ;
2529- let offset_history_last_updated = SinceEpoch :: now ( ) ;
2506+ let last_updated = Duration :: ZERO ;
2507+ let offset_history_last_updated = Duration :: ZERO ;
25302508 let network_graph = network_graph ( & logger) ;
25312509 let decay_params = ProbabilisticScoringDecayParameters :: default ( ) ;
25322510 let mut scorer = ProbabilisticScorer :: new ( decay_params, & network_graph, & logger)
@@ -2638,8 +2616,8 @@ mod tests {
26382616 #[ test]
26392617 fn constant_penalty_outside_liquidity_bounds ( ) {
26402618 let logger = TestLogger :: new ( ) ;
2641- let last_updated = SinceEpoch :: now ( ) ;
2642- let offset_history_last_updated = SinceEpoch :: now ( ) ;
2619+ let last_updated = Duration :: ZERO ;
2620+ let offset_history_last_updated = Duration :: ZERO ;
26432621 let network_graph = network_graph ( & logger) ;
26442622 let params = ProbabilisticScoringFeeParameters {
26452623 liquidity_penalty_multiplier_msat : 1_000 ,
0 commit comments