Remove unnecessary RecipientOnionFields clone.
[rust-lightning] / lightning / src / ln / monitor_tests.rs
index d5f28c23b4e6271510f78a741e038deeb3e05c3a..761d4b5316c69b4a728c60f654733ccf5330ab3b 100644 (file)
@@ -15,10 +15,10 @@ use crate::chain::transaction::OutPoint;
 use crate::chain::chaininterface::{LowerBoundedFeeEstimator, compute_feerate_sat_per_1000_weight};
 use crate::events::bump_transaction::{BumpTransactionEvent, WalletSource};
 use crate::events::{Event, MessageSendEvent, MessageSendEventsProvider, ClosureReason, HTLCDestination};
-use crate::ln::{channel, ChannelId};
+use crate::ln::channel;
+use crate::ln::types::ChannelId;
 use crate::ln::channelmanager::{BREAKDOWN_TIMEOUT, PaymentId, RecipientOnionFields};
 use crate::ln::msgs::ChannelMessageHandler;
-use crate::util::config::UserConfig;
 use crate::crypto::utils::sign;
 use crate::util::ser::Writeable;
 use crate::util::scid_utils::block_from_scid;
@@ -2249,7 +2249,7 @@ fn test_yield_anchors_events() {
        // emitted by LDK, such that the consumer can attach fees to the zero fee HTLC transactions.
        let mut chanmon_cfgs = create_chanmon_cfgs(2);
        let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
-       let mut anchors_config = UserConfig::default();
+       let mut anchors_config = test_default_channel_config();
        anchors_config.channel_handshake_config.announced_channel = true;
        anchors_config.channel_handshake_config.negotiate_anchors_zero_fee_htlc_tx = true;
        anchors_config.manually_accept_inbound_channels = true;
@@ -2400,7 +2400,7 @@ fn test_anchors_aggregated_revoked_htlc_tx() {
        let bob_persister;
        let bob_chain_monitor;
 
-       let mut anchors_config = UserConfig::default();
+       let mut anchors_config = test_default_channel_config();
        anchors_config.channel_handshake_config.announced_channel = true;
        anchors_config.channel_handshake_config.negotiate_anchors_zero_fee_htlc_tx = true;
        anchors_config.manually_accept_inbound_channels = true;