@@ -2079,11 +2079,10 @@ mod tests {
20792079
20802080 let event_handler = |_: Event | { panic ! ( ) ; } ;
20812081 let invoice_payer = InvoicePayer :: new ( nodes[ 0 ] . node , router, nodes[ 0 ] . logger , event_handler, Retry :: Attempts ( 1 ) ) ;
2082- let secp_context = Secp256k1 :: signing_only ( ) ;
20832082
20842083 assert ! ( invoice_payer. pay_invoice( & create_invoice_from_channelmanager_and_duration_since_epoch(
20852084 & nodes[ 1 ] . node, nodes[ 1 ] . keys_manager, nodes[ 1 ] . logger, Currency :: Bitcoin ,
2086- Some ( 100_010_000 ) , "Invoice" . to_string( ) , duration_since_epoch( ) , 3600 , & secp_context ) . unwrap( ) )
2085+ Some ( 100_010_000 ) , "Invoice" . to_string( ) , duration_since_epoch( ) , 3600 ) . unwrap( ) )
20872086 . is_ok( ) ) ;
20882087 let htlc_msgs = nodes[ 0 ] . node . get_and_clear_pending_msg_events ( ) ;
20892088 assert_eq ! ( htlc_msgs. len( ) , 2 ) ;
@@ -2125,11 +2124,10 @@ mod tests {
21252124
21262125 let event_handler = |_: Event | { panic ! ( ) ; } ;
21272126 let invoice_payer = InvoicePayer :: new ( nodes[ 0 ] . node , router, nodes[ 0 ] . logger , event_handler, Retry :: Attempts ( 1 ) ) ;
2128- let secp_context = Secp256k1 :: signing_only ( ) ;
21292127
21302128 assert ! ( invoice_payer. pay_invoice( & create_invoice_from_channelmanager_and_duration_since_epoch(
21312129 & nodes[ 1 ] . node, nodes[ 1 ] . keys_manager, nodes[ 1 ] . logger, Currency :: Bitcoin ,
2132- Some ( 100_010_000 ) , "Invoice" . to_string( ) , duration_since_epoch( ) , 3600 , & secp_context ) . unwrap( ) )
2130+ Some ( 100_010_000 ) , "Invoice" . to_string( ) , duration_since_epoch( ) , 3600 ) . unwrap( ) )
21332131 . is_ok( ) ) ;
21342132 let htlc_msgs = nodes[ 0 ] . node . get_and_clear_pending_msg_events ( ) ;
21352133 assert_eq ! ( htlc_msgs. len( ) , 2 ) ;
@@ -2207,11 +2205,10 @@ mod tests {
22072205 event_checker ( event) ;
22082206 } ;
22092207 let invoice_payer = InvoicePayer :: new ( nodes[ 0 ] . node , router, nodes[ 0 ] . logger , event_handler, Retry :: Attempts ( 1 ) ) ;
2210- let secp_context = Secp256k1 :: signing_only ( ) ;
22112208
22122209 assert ! ( invoice_payer. pay_invoice( & create_invoice_from_channelmanager_and_duration_since_epoch(
22132210 & nodes[ 1 ] . node, nodes[ 1 ] . keys_manager, nodes[ 1 ] . logger, Currency :: Bitcoin ,
2214- Some ( 100_010_000 ) , "Invoice" . to_string( ) , duration_since_epoch( ) , 3600 , & secp_context ) . unwrap( ) )
2211+ Some ( 100_010_000 ) , "Invoice" . to_string( ) , duration_since_epoch( ) , 3600 ) . unwrap( ) )
22152212 . is_ok( ) ) ;
22162213 let htlc_updates = SendEvent :: from_node ( & nodes[ 0 ] ) ;
22172214 check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
0 commit comments