@@ -33,7 +33,7 @@ use crate::onion_message::messenger::{Destination, MessageRouter, MessageSendIns
33
33
use crate :: onion_message:: offers:: OffersMessage ;
34
34
use crate :: onion_message:: packet:: ParsedOnionMessageContents ;
35
35
use crate :: prelude:: * ;
36
- use crate :: routing:: router:: { Payee , PaymentParameters } ;
36
+ use crate :: routing:: router:: { Payee , PaymentParameters , RouteParametersConfig } ;
37
37
use crate :: sign:: NodeSigner ;
38
38
use crate :: sync:: Mutex ;
39
39
use crate :: types:: features:: Bolt12InvoiceFeatures ;
@@ -238,7 +238,7 @@ fn static_invoice_unknown_required_features() {
238
238
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
239
239
nodes[ 0 ]
240
240
. node
241
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , None )
241
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , RouteParametersConfig :: default ( ) )
242
242
. unwrap ( ) ;
243
243
244
244
// Don't forward the invreq since we don't support retrieving the static invoice from the
@@ -298,7 +298,7 @@ fn ignore_unexpected_static_invoice() {
298
298
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
299
299
nodes[ 0 ]
300
300
. node
301
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , None )
301
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , RouteParametersConfig :: default ( ) )
302
302
. unwrap ( ) ;
303
303
304
304
// Don't forward the invreq since we don't support retrieving the static invoice from the
@@ -415,7 +415,7 @@ fn async_receive_flow_success() {
415
415
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
416
416
nodes[ 0 ]
417
417
. node
418
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , None )
418
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , RouteParametersConfig :: default ( ) )
419
419
. unwrap ( ) ;
420
420
let release_held_htlc_om =
421
421
pass_async_payments_oms ( static_invoice, & nodes[ 0 ] , & nodes[ 1 ] , & nodes[ 2 ] ) . 1 ;
@@ -463,7 +463,7 @@ fn expired_static_invoice_fail() {
463
463
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
464
464
nodes[ 0 ]
465
465
. node
466
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , None )
466
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , RouteParametersConfig :: default ( ) )
467
467
. unwrap ( ) ;
468
468
469
469
let invreq_om = nodes[ 0 ]
@@ -546,7 +546,7 @@ fn async_receive_mpp() {
546
546
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
547
547
nodes[ 0 ]
548
548
. node
549
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 1 ) , None )
549
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 1 ) , RouteParametersConfig :: default ( ) )
550
550
. unwrap ( ) ;
551
551
let release_held_htlc_om_3_0 =
552
552
pass_async_payments_oms ( static_invoice, & nodes[ 0 ] , & nodes[ 1 ] , & nodes[ 3 ] ) . 1 ;
@@ -630,7 +630,7 @@ fn amount_doesnt_match_invreq() {
630
630
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
631
631
nodes[ 0 ]
632
632
. node
633
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 1 ) , None )
633
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 1 ) , RouteParametersConfig :: default ( ) )
634
634
. unwrap ( ) ;
635
635
let release_held_htlc_om_3_0 =
636
636
pass_async_payments_oms ( static_invoice, & nodes[ 0 ] , & nodes[ 1 ] , & nodes[ 3 ] ) . 1 ;
@@ -859,7 +859,7 @@ fn invalid_async_receive_with_retry<F1, F2>(
859
859
860
860
nodes[ 0 ]
861
861
. node
862
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 2 ) , None )
862
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 2 ) , RouteParametersConfig :: default ( ) )
863
863
. unwrap ( ) ;
864
864
let release_held_htlc_om_2_0 =
865
865
pass_async_payments_oms ( static_invoice, & nodes[ 0 ] , & nodes[ 1 ] , & nodes[ 2 ] ) . 1 ;
@@ -948,7 +948,7 @@ fn expired_static_invoice_message_path() {
948
948
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
949
949
nodes[ 0 ]
950
950
. node
951
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 1 ) , None )
951
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 1 ) , RouteParametersConfig :: default ( ) )
952
952
. unwrap ( ) ;
953
953
954
954
// While the invoice is unexpired, respond with release_held_htlc.
@@ -1052,7 +1052,7 @@ fn expired_static_invoice_payment_path() {
1052
1052
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
1053
1053
nodes[ 0 ]
1054
1054
. node
1055
- . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , None )
1055
+ . pay_for_offer ( & offer, None , Some ( amt_msat) , None , payment_id, Retry :: Attempts ( 0 ) , RouteParametersConfig :: default ( ) )
1056
1056
. unwrap ( ) ;
1057
1057
let release_held_htlc_om =
1058
1058
pass_async_payments_oms ( static_invoice, & nodes[ 0 ] , & nodes[ 1 ] , & nodes[ 2 ] ) . 1 ;
0 commit comments