use lightning::ln::channel::FEE_SPIKE_BUFFER_FEE_INCREASE_MULTIPLE;
use lightning::ln::channel_state::ChannelDetails;
use lightning::ln::channelmanager::{
- ChainParameters, ChannelManager, ChannelManagerReadArgs, PaymentId, PaymentSendFailure,
- RecipientOnionFields,
+ ChainParameters, ChannelManager, ChannelManagerReadArgs, PaymentId,
};
+use lightning::ln::outbound_payment::{RecipientOnionFields, PaymentSendFailure};
use lightning::ln::functional_test_utils::*;
use lightning::ln::msgs::{
self, ChannelMessageHandler, CommitmentUpdate, DecodeError, Init, UpdateAddHTLC,
use lightning::events::Event;
use lightning::ln::channel_state::ChannelDetails;
use lightning::ln::channelmanager::{
- ChainParameters, ChannelManager, InterceptId, PaymentId, RecipientOnionFields, Retry,
+ ChainParameters, ChannelManager, InterceptId, PaymentId,
};
+use lightning::ln::outbound_payment::{RecipientOnionFields, Retry};
use lightning::ln::functional_test_utils::*;
use lightning::ln::msgs::{self, DecodeError};
use lightning::ln::peer_handler::{
use bitcoin::hashes::Hash;
use lightning_invoice::Bolt11Invoice;
-use crate::ln::channelmanager::RecipientOnionFields;
+use crate::ln::outbound_payment::RecipientOnionFields;
use crate::ln::types::PaymentHash;
use crate::routing::router::{PaymentParameters, RouteParameters};
#[test]
fn payment_metadata_end_to_end() {
use crate::events::Event;
- use crate::ln::channelmanager::{PaymentId, Retry};
+ use crate::ln::channelmanager::PaymentId;
+ use crate::ln::outbound_payment::Retry;
use crate::ln::functional_test_utils::*;
use crate::ln::msgs::ChannelMessageHandler;
use core::ops::Deref;
// Re-export this for use in the public API.
-pub use crate::ln::outbound_payment::{Bolt12PaymentError, PaymentSendFailure, ProbeSendFailure, Retry, RetryableSendFailure, RecipientOnionFields};
+pub(crate) use crate::ln::outbound_payment::{Bolt12PaymentError, PaymentSendFailure, ProbeSendFailure, Retry, RetryableSendFailure, RecipientOnionFields};
use crate::ln::script::ShutdownScript;
// We hold various information about HTLC relay in the HTLC objects in Channel itself:
use crate::events::{MessageSendEvent, MessageSendEventsProvider};
use crate::ln::types::PaymentHash;
use crate::ln::types::PaymentPreimage;
- use crate::ln::channelmanager::{PhantomRouteHints, MIN_FINAL_CLTV_EXPIRY_DELTA, PaymentId, RecipientOnionFields, Retry};
+ use crate::ln::channelmanager::{PhantomRouteHints, MIN_FINAL_CLTV_EXPIRY_DELTA, PaymentId};
+ use crate::ln::outbound_payment::{RecipientOnionFields, Retry};
use crate::ln::functional_test_utils::*;
use crate::ln::msgs::ChannelMessageHandler;
use crate::routing::router::{PaymentParameters, RouteParameters};
pub(crate) mod channel;
pub(crate) mod onion_utils;
-mod outbound_payment;
+pub mod outbound_payment;
pub mod wire;
pub use onion_utils::create_payment_onion;