@@ -121,7 +121,9 @@ use lightning::ln::channelmanager::{
121121} ;
122122use lightning:: ln:: peer_handler:: { IgnoringMessageHandler , MessageHandler } ;
123123use lightning:: ln:: { PaymentHash , PaymentPreimage , PaymentSecret } ;
124- use lightning:: routing:: scoring:: { ProbabilisticScorer , ProbabilisticScoringParameters } ;
124+ use lightning:: routing:: scoring:: {
125+ ProbabilisticScorer , ProbabilisticScoringDecayParameters , ProbabilisticScoringFeeParameters ,
126+ } ;
125127use lightning:: sign:: EntropySource ;
126128
127129use lightning:: util:: config:: { ChannelHandshakeConfig , ChannelHandshakeLimits , UserConfig } ;
@@ -434,7 +436,7 @@ impl Builder {
434436 Ok ( scorer) => Arc :: new ( Mutex :: new ( scorer) ) ,
435437 Err ( e) => {
436438 if e. kind ( ) == std:: io:: ErrorKind :: NotFound {
437- let params = ProbabilisticScoringParameters :: default ( ) ;
439+ let params = ProbabilisticScoringDecayParameters :: default ( ) ;
438440 Arc :: new ( Mutex :: new ( ProbabilisticScorer :: new (
439441 params,
440442 Arc :: clone ( & network_graph) ,
@@ -447,11 +449,13 @@ impl Builder {
447449 }
448450 } ;
449451
452+ let scoring_fee_params = ProbabilisticScoringFeeParameters :: default ( ) ;
450453 let router = Arc :: new ( DefaultRouter :: new (
451454 Arc :: clone ( & network_graph) ,
452455 Arc :: clone ( & logger) ,
453456 keys_manager. get_secure_random_bytes ( ) ,
454457 Arc :: clone ( & scorer) ,
458+ scoring_fee_params,
455459 ) ) ;
456460
457461 // Read ChannelMonitor state from store
0 commit comments