@@ -1558,10 +1558,8 @@ fn bolt12_custom_router_uses_lsps2_intercept_scid() {
15581558 NullMessageRouter { } ,
15591559 lsps_nodes. client_node . keys_manager ,
15601560 ) ;
1561- let offer_id = OfferId ( [ 42 ; 32 ] ) ;
1562-
1563- router. register_offer (
1564- offer_id,
1561+ router. register_intercept_scid (
1562+ intercept_scid,
15651563 LSPS2Bolt12InvoiceParameters {
15661564 counterparty_node_id : service_node_id,
15671565 intercept_scid,
@@ -1573,7 +1571,7 @@ fn bolt12_custom_router_uses_lsps2_intercept_scid() {
15731571 payment_secret : lightning_types:: payment:: PaymentSecret ( [ 7 ; 32 ] ) ,
15741572 payment_constraints : PaymentConstraints { max_cltv_expiry : 50 , htlc_minimum_msat : 1 } ,
15751573 payment_context : PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
1576- offer_id,
1574+ offer_id : OfferId ( [ 42 ; 32 ] ) ,
15771575 invoice_request : InvoiceRequestFields {
15781576 payer_signing_pubkey : lsps_nodes. payer_node . node . get_our_node_id ( ) ,
15791577 quantity : None ,
@@ -1685,8 +1683,8 @@ fn bolt12_lsps2_end_to_end_test() {
16851683 NullMessageRouter { } ,
16861684 Arc :: new ( RandomBytes :: new ( [ 43 ; 32 ] ) ) ,
16871685 ) ) ;
1688- lsps2_router. register_offer (
1689- offer . id ( ) ,
1686+ lsps2_router. register_intercept_scid (
1687+ intercept_scid ,
16901688 LSPS2Bolt12InvoiceParameters {
16911689 counterparty_node_id : service_node_id,
16921690 intercept_scid,
@@ -1967,8 +1965,8 @@ fn bolt12_lsps2_compact_message_path_test() {
19671965 NullMessageRouter { } ,
19681966 Arc :: new ( RandomBytes :: new ( [ 43 ; 32 ] ) ) ,
19691967 ) ) ;
1970- lsps2_router. register_offer (
1971- offer . id ( ) ,
1968+ lsps2_router. register_intercept_scid (
1969+ intercept_scid ,
19721970 LSPS2Bolt12InvoiceParameters {
19731971 counterparty_node_id : service_node_id,
19741972 intercept_scid,
0 commit comments