@@ -82,13 +82,12 @@ use crate::ln::our_peer_storage::EncryptedOurPeerStorage;
82
82
#[cfg(test)]
83
83
use crate::ln::outbound_payment;
84
84
use crate::ln::outbound_payment::{
85
- Bolt11PaymentError, OutboundPayments, PendingOutboundPayment, RetryableInvoiceRequest,
86
- SendAlongPathArgs, StaleExpiration,
85
+ OutboundPayments, PendingOutboundPayment, RetryableInvoiceRequest, SendAlongPathArgs ,
86
+ StaleExpiration,
87
87
};
88
- use crate::ln::types::ChannelId;
89
- use crate::offers::flow::OffersMessageFlow;
90
88
use crate::offers::invoice::{
91
- Bolt12Invoice, DerivedSigningPubkey, InvoiceBuilder, DEFAULT_RELATIVE_EXPIRY,
89
+ Bolt12Invoice, DerivedSigningPubkey, ExplicitSigningPubkey, InvoiceBuilder,
90
+ UnsignedBolt12Invoice, DEFAULT_RELATIVE_EXPIRY,
92
91
};
93
92
use crate::offers::invoice_error::InvoiceError;
94
93
use crate::offers::invoice_request::InvoiceRequest;
@@ -174,6 +173,8 @@ use alloc::collections::{btree_map, BTreeMap};
174
173
175
174
use crate::io;
176
175
use crate::io::Read;
176
+ #[cfg(any(test, feature = "_externalize_tests"))]
177
+ pub(crate) use crate::ln::outbound_payment::PaymentSendFailure;
177
178
use crate::prelude::*;
178
179
use crate::sync::{Arc, FairRwLock, LockHeldState, LockTestExt, Mutex, RwLock, RwLockReadGuard};
179
180
use bitcoin::hex::impl_fmt_traits;
@@ -183,12 +184,13 @@ use core::ops::Deref;
183
184
use core::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
184
185
use core::time::Duration;
185
186
use core::{cmp, mem};
187
+
186
188
// Re-export this for use in the public API.
187
- #[cfg(any(test, feature = "_externalize_tests"))]
188
- pub(crate) use crate::ln::outbound_payment::PaymentSendFailure;
189
189
pub use crate::ln::outbound_payment::{
190
- Bolt12PaymentError, ProbeSendFailure, RecipientOnionFields, Retry, RetryableSendFailure,
190
+ Bolt11PaymentError, Bolt12PaymentError, ProbeSendFailure, RecipientOnionFields, Retry,
191
+ RetryableSendFailure,
191
192
};
193
+
192
194
use crate::ln::script::ShutdownScript;
193
195
194
196
// We hold various information about HTLC relay in the HTLC objects in Channel itself:
0 commit comments