@@ -82,8 +82,8 @@ use crate::ln::our_peer_storage::EncryptedOurPeerStorage;
8282#[cfg(test)]
8383use crate::ln::outbound_payment;
8484use crate::ln::outbound_payment::{
85- Bolt11PaymentError, OutboundPayments, PendingOutboundPayment, RetryableInvoiceRequest,
86- SendAlongPathArgs, StaleExpiration,
85+ OutboundPayments, PendingOutboundPayment, RetryableInvoiceRequest, SendAlongPathArgs ,
86+ StaleExpiration,
8787};
8888use crate::ln::types::ChannelId;
8989use crate::offers::flow::OffersMessageFlow;
@@ -187,7 +187,8 @@ use core::{cmp, mem};
187187#[cfg(any(test, feature = "_externalize_tests"))]
188188pub(crate) use crate::ln::outbound_payment::PaymentSendFailure;
189189pub use crate::ln::outbound_payment::{
190- Bolt12PaymentError, ProbeSendFailure, RecipientOnionFields, Retry, RetryableSendFailure,
190+ Bolt11PaymentError, Bolt12PaymentError, ProbeSendFailure, RecipientOnionFields, Retry,
191+ RetryableSendFailure,
191192};
192193use crate::ln::script::ShutdownScript;
193194
@@ -5142,10 +5143,11 @@ where
51425143 ///
51435144 /// # Handling Invoice Amounts
51445145 /// Some invoices include a specific amount, while others require you to specify one.
5145- /// - If the invoice **includes** an amount, user must not provide `amount_msats`.
5146+ /// - If the invoice **includes** an amount, user may provide an amount greater or equal to it
5147+ /// to allow for overpayments.
51465148 /// - If the invoice **doesn't include** an amount, you'll need to specify `amount_msats`.
51475149 ///
5148- /// If these conditions aren’t met, the function will return `Bolt11PaymentError::InvalidAmount`.
5150+ /// If these conditions aren’t met, the function will return [ `Bolt11PaymentError::InvalidAmount`] .
51495151 ///
51505152 /// # Custom Routing Parameters
51515153 /// Users can customize routing parameters via [`RouteParametersConfig`].
0 commit comments