Skip to content

Commit 7175ba4

Browse files
committed
Expose Bolt11PaymentError
We previously changed the BOLT11 payment API, also introducing a new error type in `outbound_payment`. However, we didn't actualy re-export that in `ChannelManager`, so it's currently inaccessible.
1 parent 5688166 commit 7175ba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ use crate::ln::onion_utils::{HTLCFailReason, LocalHTLCFailureReason};
6666
use crate::ln::msgs::{BaseMessageHandler, ChannelMessageHandler, CommitmentUpdate, DecodeError, LightningError, MessageSendEvent};
6767
#[cfg(test)]
6868
use crate::ln::outbound_payment;
69-
use crate::ln::outbound_payment::{Bolt11PaymentError, OutboundPayments, PendingOutboundPayment, RetryableInvoiceRequest, SendAlongPathArgs, StaleExpiration};
69+
use crate::ln::outbound_payment::{OutboundPayments, PendingOutboundPayment, RetryableInvoiceRequest, SendAlongPathArgs, StaleExpiration};
7070
use crate::offers::invoice::{Bolt12Invoice, DEFAULT_RELATIVE_EXPIRY, DerivedSigningPubkey, ExplicitSigningPubkey, InvoiceBuilder, UnsignedBolt12Invoice};
7171
use crate::offers::invoice_error::InvoiceError;
7272
use crate::offers::invoice_request::{InvoiceRequest, InvoiceRequestBuilder};
@@ -131,7 +131,7 @@ use core::time::Duration;
131131
use core::ops::Deref;
132132
use bitcoin::hex::impl_fmt_traits;
133133
// Re-export this for use in the public API.
134-
pub use crate::ln::outbound_payment::{Bolt12PaymentError, ProbeSendFailure, Retry, RetryableSendFailure, RecipientOnionFields};
134+
pub use crate::ln::outbound_payment::{Bolt11PaymentError, Bolt12PaymentError, ProbeSendFailure, Retry, RetryableSendFailure, RecipientOnionFields};
135135
#[cfg(any(test, feature = "_externalize_tests"))]
136136
pub(crate) use crate::ln::outbound_payment::PaymentSendFailure;
137137
use crate::ln::script::ShutdownScript;

0 commit comments

Comments
 (0)