Skip to content

Commit ba837a1

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 29efc76 commit ba837a1

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
@@ -10390,8 +10390,10 @@ where
1039010390
/// - `amount_msats` if overpaying what is required for the given `quantity` is desired, and
1039110391
/// - `payer_note` for [`InvoiceRequest::payer_note`].
1039210392
///
10393-
/// If `max_total_routing_fee_msat` is not specified, The default from
10394-
/// [`RouteParameters::from_payment_params_and_value`] is applied.
10393+
/// # Custom Routing Parameters
10394+
///
10395+
/// Users can customize routing parameters via [`RouteParametersConfig`].
10396+
/// To use default settings, call the function with [`RouteParametersConfig::default()`].
1039510397
///
1039610398
/// # Payment
1039710399
///
@@ -10552,8 +10554,10 @@ where
1055210554
/// implementing [`DNSResolverMessageHandler`]) directly to look up a URI and then delegate to
1055310555
/// your normal URI handling.
1055410556
///
10555-
/// If `max_total_routing_fee_msat` is not specified, the default from
10556-
/// [`RouteParameters::from_payment_params_and_value`] is applied.
10557+
/// # Custom Routing Parameters
10558+
///
10559+
/// Users can customize routing parameters via [`RouteParametersConfig`].
10560+
/// To use default settings, call the function with [`RouteParametersConfig::default()`].
1055710561
///
1055810562
/// # Payment
1055910563
///

0 commit comments

Comments
 (0)