]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Test utils: use full import path in reload_node macro.
authorValentine Wallace <vwallace@protonmail.com>
Thu, 12 Sep 2024 17:18:03 +0000 (13:18 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Mon, 16 Sep 2024 17:34:03 +0000 (13:34 -0400)
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/monitor_tests.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/reorg_tests.rs

index 7e011e65efd1249f90269ffd9981782d73ffeff2..1c5af0d8f0648aaca437aa0bd0c5820ec90abb1d 100644 (file)
@@ -1144,8 +1144,8 @@ macro_rules! reload_node {
        ($node: expr, $new_config: expr, $chanman_encoded: expr, $monitors_encoded: expr, $persister: ident, $new_chain_monitor: ident, $new_channelmanager: ident) => {
                let chanman_encoded = $chanman_encoded;
 
-               $persister = test_utils::TestPersister::new();
-               $new_chain_monitor = test_utils::TestChainMonitor::new(Some($node.chain_source), $node.tx_broadcaster.clone(), $node.logger, $node.fee_estimator, &$persister, &$node.keys_manager);
+               $persister = $crate::util::test_utils::TestPersister::new();
+               $new_chain_monitor = $crate::util::test_utils::TestChainMonitor::new(Some($node.chain_source), $node.tx_broadcaster.clone(), $node.logger, $node.fee_estimator, &$persister, &$node.keys_manager);
                $node.chain_monitor = &$new_chain_monitor;
 
                $new_channelmanager = _reload_node(&$node, $new_config, &chanman_encoded, $monitors_encoded);
index 1e774ca98ab684dd0e2b873011510321dc3d091f..947ec4a1304294c1a816930171e6273a6dbadbf4 100644 (file)
@@ -23,7 +23,6 @@ use crate::ln::msgs::ChannelMessageHandler;
 use crate::crypto::utils::sign;
 use crate::util::ser::Writeable;
 use crate::util::scid_utils::block_from_scid;
-use crate::util::test_utils;
 
 use bitcoin::{Amount, PublicKey, ScriptBuf, Transaction, TxIn, TxOut, Witness};
 use bitcoin::locktime::absolute::LockTime;
index 248f2dfb0aca0e7ce75260867ae049e85729827f..22854952c58fcc4ba1c4316ce4ef04e5a5390729 100644 (file)
@@ -24,7 +24,6 @@ use crate::ln::msgs::{ChannelMessageHandler, RoutingMessageHandler, ChannelUpdat
 use crate::ln::wire::Encode;
 use crate::util::config::{UserConfig, MaxDustHTLCExposure};
 use crate::util::ser::Writeable;
-use crate::util::test_utils;
 
 use crate::prelude::*;
 
index b81eda309853551a1ac114dffcd20a20c9198113..5d4f1540fb995a66a2a3f50e050ff583e35236e0 100644 (file)
@@ -17,7 +17,6 @@ use crate::events::{Event, MessageSendEventsProvider, ClosureReason, HTLCDestina
 use crate::ln::msgs::{ChannelMessageHandler, Init};
 use crate::ln::types::ChannelId;
 use crate::sign::OutputSpender;
-use crate::util::test_utils;
 use crate::util::ser::Writeable;
 use crate::util::string::UntrustedString;