Skip to content

Commit 0f75233

Browse files
committed
Update docs with use of RouteParametersConfig
pay_for_offer and pay_for_offer_from_human_readable_name take RouteParametersConfig and not max_total_routing_fee_msat.
1 parent b436775 commit 0f75233

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10475,8 +10475,10 @@ where
1047510475
/// - `amount_msats` if overpaying what is required for the given `quantity` is desired, and
1047610476
/// - `payer_note` for [`InvoiceRequest::payer_note`].
1047710477
///
10478-
/// If `max_total_routing_fee_msat` is not specified, The default from
10479-
/// [`RouteParameters::from_payment_params_and_value`] is applied.
10478+
/// # Custom Routing Parameters
10479+
///
10480+
/// Users can customize routing parameters via [`RouteParametersConfig`].
10481+
/// To use default settings, call the function with [`RouteParametersConfig::default()`].
1048010482
///
1048110483
/// # Payment
1048210484
///
@@ -10712,8 +10714,10 @@ where
1071210714
/// implementing [`DNSResolverMessageHandler`]) directly to look up a URI and then delegate to
1071310715
/// your normal URI handling.
1071410716
///
10715-
/// If `max_total_routing_fee_msat` is not specified, the default from
10716-
/// [`RouteParameters::from_payment_params_and_value`] is applied.
10717+
/// # Custom Routing Parameters
10718+
///
10719+
/// Users can customize routing parameters via [`RouteParametersConfig`].
10720+
/// To use default settings, call the function with [`RouteParametersConfig::default()`].
1071710721
///
1071810722
/// # Payment
1071910723
///

0 commit comments

Comments
 (0)