@@ -125,7 +125,7 @@ pub trait ScoreUpdate {
125125 /// Thus, this method is provided to allow scorers to observe the passage of time - the holder
126126 /// of this object should call this method regularly (generally via the
127127 /// `lightning-background-processor` crate).
128- fn decay_liquidity_certainty ( & mut self , duration_since_epoch: Duration ) ;
128+ fn time_passed ( & mut self , duration_since_epoch: Duration ) ;
129129}
130130
131131/// A trait which can both lookup and update routing channel penalty scores.
@@ -167,8 +167,8 @@ impl<S: ScoreUpdate, T: DerefMut<Target=S>> ScoreUpdate for T {
167167 self . deref_mut( ) . probe_successful( path, duration_since_epoch)
168168 }
169169
170- fn decay_liquidity_certainty ( & mut self , duration_since_epoch: Duration ) {
171- self . deref_mut( ) . decay_liquidity_certainty ( duration_since_epoch)
170+ fn time_passed ( & mut self , duration_since_epoch: Duration ) {
171+ self . deref_mut( ) . time_passed ( duration_since_epoch)
172172 }
173173}
174174} }
@@ -372,8 +372,8 @@ impl<'a, T: Score> ScoreUpdate for MultiThreadedScoreLockWrite<'a, T> {
372372 self . 0 . probe_successful ( path, duration_since_epoch)
373373 }
374374
375- fn decay_liquidity_certainty ( & mut self , duration_since_epoch : Duration ) {
376- self . 0 . decay_liquidity_certainty ( duration_since_epoch)
375+ fn time_passed ( & mut self , duration_since_epoch : Duration ) {
376+ self . 0 . time_passed ( duration_since_epoch)
377377 }
378378}
379379
@@ -421,7 +421,7 @@ impl ScoreUpdate for FixedPenaltyScorer {
421421
422422 fn probe_successful ( & mut self , _path : & Path , _duration_since_epoch : Duration ) { }
423423
424- fn decay_liquidity_certainty ( & mut self , _duration_since_epoch : Duration ) { }
424+ fn time_passed ( & mut self , _duration_since_epoch : Duration ) { }
425425}
426426
427427impl Writeable for FixedPenaltyScorer {
@@ -1480,7 +1480,7 @@ impl<G: Deref<Target = NetworkGraph<L>>, L: Deref, T: Time> ScoreUpdate for Prob
14801480 self . payment_path_failed ( path, u64:: max_value ( ) , duration_since_epoch)
14811481 }
14821482
1483- fn decay_liquidity_certainty ( & mut self , _duration_since_epoch : Duration ) { }
1483+ fn time_passed ( & mut self , _duration_since_epoch : Duration ) { }
14841484}
14851485
14861486#[ cfg( c_bindings) ]
0 commit comments