@@ -1178,8 +1178,8 @@ mod tests {
1178
1178
// *** Full Featured Functional Tests with a Real ChannelManager ***
1179
1179
struct ManualRouter ( Mutex < LinkedList < Result < Route , LightningError > > > ) ;
1180
1180
1181
- impl Router for ManualRouter {
1182
- fn find_route ( & self , _payer : & PublicKey , _params : & RouteParameters , _first_hops : Option < & [ & ChannelDetails ] > )
1181
+ impl < S : routing :: Score > Router < S > for ManualRouter {
1182
+ fn find_route ( & self , _payer : & PublicKey , _params : & RouteParameters , _first_hops : Option < & [ & ChannelDetails ] > , _scorer : & S )
1183
1183
-> Result < Route , LightningError > {
1184
1184
self . 0 . lock ( ) . unwrap ( ) . pop_front ( ) . unwrap ( )
1185
1185
}
@@ -1236,7 +1236,8 @@ mod tests {
1236
1236
1237
1237
let event_handled = core:: cell:: RefCell :: new ( false ) ;
1238
1238
let event_handler = |_: & _ | { * event_handled. borrow_mut ( ) = true ; } ;
1239
- let invoice_payer = InvoicePayer :: new ( nodes[ 0 ] . node , route_res, nodes[ 0 ] . logger , event_handler, RetryAttempts ( 1 ) ) ;
1239
+ let scorer = RefCell :: new ( TestScorer :: new ( ) ) ;
1240
+ let invoice_payer = InvoicePayer :: new ( nodes[ 0 ] . node , route_res, & scorer, nodes[ 0 ] . logger , event_handler, RetryAttempts ( 1 ) ) ;
1240
1241
1241
1242
invoice_payer. pay_invoice ( & create_invoice_from_channelmanager (
1242
1243
& nodes[ 1 ] . node , nodes[ 1 ] . keys_manager , Currency :: Bitcoin , Some ( 100_010_000 ) , "Invoice" . to_string ( ) ) . unwrap ( ) ) . unwrap ( ) ;
0 commit comments