Skip to content

Commit 82828d3

Browse files
committed
f rebase 2
1 parent 9de2ce5 commit 82828d3

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ use crate::types::features::{Bolt12InvoiceFeatures, ChannelFeatures, ChannelType
5656
#[cfg(any(feature = "_test_utils", test))]
5757
use crate::types::features::Bolt11InvoiceFeatures;
5858
use crate::routing::router::{BlindedTail, InFlightHtlcs, Path, Payee, PaymentParameters, RouteParameters, Router};
59-
#[cfg(test)]
59+
#[cfg(any(test, feature = "_test_utils"))]
6060
use crate::routing::router::Route;
6161
use crate::ln::onion_payment::{check_incoming_htlc_cltv, create_recv_pending_htlc_info, create_fwd_pending_htlc_info, decode_incoming_update_add_htlc_onion, InboundHTLCErr, NextPacketDetails};
6262
use crate::ln::msgs;
@@ -128,8 +128,8 @@ use core::ops::Deref;
128128
use bitcoin::hex::impl_fmt_traits;
129129
// Re-export this for use in the public API.
130130
pub use crate::ln::outbound_payment::{Bolt12PaymentError, ProbeSendFailure, Retry, RetryableSendFailure, RecipientOnionFields};
131-
#[cfg(test)]
132-
pub(crate) use crate::ln::outbound_payment::PaymentSendFailure;
131+
#[cfg(any(test, feature = "_test_utils"))]
132+
pub use crate::ln::outbound_payment::PaymentSendFailure;
133133
use crate::ln::script::ShutdownScript;
134134

135135
// We hold various information about HTLC relay in the HTLC objects in Channel itself:
@@ -4627,8 +4627,8 @@ where
46274627
// [`TestRouter::expect_find_route`] instead.
46284628
//
46294629
// [`TestRouter::expect_find_route`]: crate::util::test_utils::TestRouter::expect_find_route
4630-
#[cfg(test)]
4631-
pub(crate) fn send_payment_with_route(
4630+
#[cfg(any(test, feature = "_test_utils"))]
4631+
pub fn send_payment_with_route(
46324632
&self, route: Route, payment_hash: PaymentHash, recipient_onion: RecipientOnionFields,
46334633
payment_id: PaymentId
46344634
) -> Result<(), PaymentSendFailure> {

lightning/src/ln/outbound_payment.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,8 @@ pub enum RetryableSendFailure {
482482
/// as the Err() type describing which state the payment is in, see the description of individual
483483
/// enum states for more.
484484
#[derive(Clone, Debug, PartialEq, Eq)]
485-
pub(crate) enum PaymentSendFailure {
485+
// FIXME
486+
pub enum PaymentSendFailure {
486487
/// A parameter which was passed to send_payment was invalid, preventing us from attempting to
487488
/// send the payment at all.
488489
///
@@ -790,7 +791,7 @@ impl OutboundPayments {
790791
best_block_height, logger, pending_events, &send_payment_along_path)
791792
}
792793

793-
#[cfg(test)]
794+
#[cfg(any(test, feature = "_test_utils"))]
794795
pub(super) fn send_payment_with_route<ES: Deref, NS: Deref, F>(
795796
&self, route: &Route, payment_hash: PaymentHash, recipient_onion: RecipientOnionFields,
796797
payment_id: PaymentId, entropy_source: &ES, node_signer: &NS, best_block_height: u32,

0 commit comments

Comments
 (0)