@@ -15,7 +15,8 @@ use crate::blinded_path::{BlindedHop, BlindedPath, Direction, IntroductionNode};
1515use crate :: blinded_path:: message;
1616use crate :: blinded_path:: payment:: { ForwardTlvs , PaymentConstraints , PaymentRelay , ReceiveTlvs , self } ;
1717use crate :: ln:: { PaymentHash , PaymentPreimage } ;
18- use crate :: ln:: channelmanager:: { ChannelDetails , PaymentId , MIN_FINAL_CLTV_EXPIRY_DELTA , RecipientOnionFields } ;
18+ use crate :: ln:: channel_state:: ChannelDetails ;
19+ use crate :: ln:: channelmanager:: { PaymentId , MIN_FINAL_CLTV_EXPIRY_DELTA , RecipientOnionFields } ;
1920use crate :: ln:: features:: { BlindedHopFeatures , Bolt11InvoiceFeatures , Bolt12InvoiceFeatures , ChannelFeatures , NodeFeatures } ;
2021use crate :: ln:: msgs:: { DecodeError , ErrorAction , LightningError , MAX_VALUE_MSAT } ;
2122use crate :: ln:: onion_utils;
@@ -3321,6 +3322,7 @@ mod tests {
33213322 use crate :: routing:: test_utils:: { add_channel, add_or_update_node, build_graph, build_line_graph, id_to_feature_flags, get_nodes, update_channel} ;
33223323 use crate :: chain:: transaction:: OutPoint ;
33233324 use crate :: sign:: EntropySource ;
3325+ use crate :: ln:: channel_state:: { ChannelCounterparty , ChannelDetails , ChannelShutdownState } ;
33243326 use crate :: ln:: types:: ChannelId ;
33253327 use crate :: ln:: features:: { BlindedHopFeatures , ChannelFeatures , InitFeatures , NodeFeatures } ;
33263328 use crate :: ln:: msgs:: { ErrorAction , LightningError , UnsignedChannelUpdate , MAX_VALUE_MSAT } ;
@@ -3349,10 +3351,10 @@ mod tests {
33493351 use crate :: sync:: Arc ;
33503352
33513353 fn get_channel_details ( short_channel_id : Option < u64 > , node_id : PublicKey ,
3352- features : InitFeatures , outbound_capacity_msat : u64 ) -> channelmanager :: ChannelDetails {
3353- channelmanager :: ChannelDetails {
3354+ features : InitFeatures , outbound_capacity_msat : u64 ) -> ChannelDetails {
3355+ ChannelDetails {
33543356 channel_id : ChannelId :: new_zero ( ) ,
3355- counterparty : channelmanager :: ChannelCounterparty {
3357+ counterparty : ChannelCounterparty {
33563358 features,
33573359 node_id,
33583360 unspendable_punishment_reserve : 0 ,
@@ -3382,7 +3384,7 @@ mod tests {
33823384 inbound_htlc_maximum_msat : None ,
33833385 config : None ,
33843386 feerate_sat_per_1000_weight : None ,
3385- channel_shutdown_state : Some ( channelmanager :: ChannelShutdownState :: NotShuttingDown ) ,
3387+ channel_shutdown_state : Some ( ChannelShutdownState :: NotShuttingDown ) ,
33863388 pending_inbound_htlcs : Vec :: new ( ) ,
33873389 pending_outbound_htlcs : Vec :: new ( ) ,
33883390 }
@@ -8504,8 +8506,9 @@ pub(crate) mod bench_utils {
85048506 use crate :: chain:: transaction:: OutPoint ;
85058507 use crate :: routing:: scoring:: ScoreUpdate ;
85068508 use crate :: sign:: KeysManager ;
8509+ use crate :: ln:: channel_state:: { ChannelCounterparty , ChannelShutdownState } ;
8510+ use crate :: ln:: channelmanager;
85078511 use crate :: ln:: types:: ChannelId ;
8508- use crate :: ln:: channelmanager:: { self , ChannelCounterparty } ;
85098512 use crate :: util:: config:: UserConfig ;
85108513 use crate :: util:: test_utils:: TestLogger ;
85118514
@@ -8590,7 +8593,7 @@ pub(crate) mod bench_utils {
85908593 inbound_htlc_maximum_msat : None ,
85918594 config : None ,
85928595 feerate_sat_per_1000_weight : None ,
8593- channel_shutdown_state : Some ( channelmanager :: ChannelShutdownState :: NotShuttingDown ) ,
8596+ channel_shutdown_state : Some ( ChannelShutdownState :: NotShuttingDown ) ,
85948597 pending_inbound_htlcs : Vec :: new ( ) ,
85958598 pending_outbound_htlcs : Vec :: new ( ) ,
85968599 }
0 commit comments