@@ -1190,8 +1190,8 @@ mod tests {
1190
1190
// *** Full Featured Functional Tests with a Real ChannelManager ***
1191
1191
struct ManualRouter ( Mutex < LinkedList < Result < Route , LightningError > > > ) ;
1192
1192
1193
- impl Router for ManualRouter {
1194
- fn find_route ( & self , _payer : & PublicKey , _params : & RouteParameters , _first_hops : Option < & [ & ChannelDetails ] > )
1193
+ impl < S : routing :: Score > Router < S > for ManualRouter {
1194
+ fn find_route ( & self , _payer : & PublicKey , _params : & RouteParameters , _first_hops : Option < & [ & ChannelDetails ] > , _scorer : & S )
1195
1195
-> Result < Route , LightningError > {
1196
1196
self . 0 . lock ( ) . unwrap ( ) . pop_front ( ) . unwrap ( )
1197
1197
}
@@ -1248,7 +1248,8 @@ mod tests {
1248
1248
1249
1249
let event_handled = core:: cell:: RefCell :: new ( false ) ;
1250
1250
let event_handler = |_: & _ | { * event_handled. borrow_mut ( ) = true ; } ;
1251
- let invoice_payer = InvoicePayer :: new ( nodes[ 0 ] . node , route_res, nodes[ 0 ] . logger , event_handler, RetryAttempts ( 1 ) ) ;
1251
+ let scorer = RefCell :: new ( TestScorer :: new ( ) ) ;
1252
+ let invoice_payer = InvoicePayer :: new ( nodes[ 0 ] . node , route_res, & scorer, nodes[ 0 ] . logger , event_handler, RetryAttempts ( 1 ) ) ;
1252
1253
1253
1254
invoice_payer. pay_invoice ( & create_invoice_from_channelmanager (
1254
1255
& nodes[ 1 ] . node , nodes[ 1 ] . keys_manager , Currency :: Bitcoin , Some ( 100_010_000 ) , "Invoice" . to_string ( ) ) . unwrap ( ) ) . unwrap ( ) ;
0 commit comments