@@ -119,7 +119,9 @@ use lightning::ln::channelmanager::{
119119} ;
120120use lightning:: ln:: peer_handler:: { IgnoringMessageHandler , MessageHandler } ;
121121use lightning:: ln:: { PaymentHash , PaymentPreimage , PaymentSecret } ;
122- use lightning:: routing:: scoring:: { ProbabilisticScorer , ProbabilisticScoringParameters } ;
122+ use lightning:: routing:: scoring:: {
123+ ProbabilisticScorer , ProbabilisticScoringDecayParameters , ProbabilisticScoringFeeParameters ,
124+ } ;
123125use lightning:: sign:: EntropySource ;
124126
125127use lightning:: util:: config:: { ChannelHandshakeConfig , ChannelHandshakeLimits , UserConfig } ;
@@ -429,7 +431,7 @@ impl Builder {
429431 Ok ( scorer) => Arc :: new ( Mutex :: new ( scorer) ) ,
430432 Err ( e) => {
431433 if e. kind ( ) == std:: io:: ErrorKind :: NotFound {
432- let params = ProbabilisticScoringParameters :: default ( ) ;
434+ let params = ProbabilisticScoringDecayParameters :: default ( ) ;
433435 Arc :: new ( Mutex :: new ( ProbabilisticScorer :: new (
434436 params,
435437 Arc :: clone ( & network_graph) ,
@@ -442,11 +444,13 @@ impl Builder {
442444 }
443445 } ;
444446
447+ let scoring_fee_params = ProbabilisticScoringFeeParameters :: default ( ) ;
445448 let router = Arc :: new ( DefaultRouter :: new (
446449 Arc :: clone ( & network_graph) ,
447450 Arc :: clone ( & logger) ,
448451 keys_manager. get_secure_random_bytes ( ) ,
449452 Arc :: clone ( & scorer) ,
453+ scoring_fee_params,
450454 ) ) ;
451455
452456 // Read ChannelMonitor state from store
0 commit comments