@@ -15,16 +15,14 @@ use crate::chain::channelmonitor::{CLOSED_CHANNEL_UPDATE_ID, ChannelMonitor};
15
15
use crate :: sign:: EntropySource ;
16
16
use crate :: chain:: transaction:: OutPoint ;
17
17
use crate :: events:: { ClosureReason , Event , HTLCDestination , MessageSendEvent , MessageSendEventsProvider } ;
18
- use crate :: ln:: channelmanager:: { ChannelManager , ChannelManagerReadArgs , PaymentId , Retry , RecipientOnionFields } ;
18
+ use crate :: ln:: channelmanager:: { ChannelManager , ChannelManagerReadArgs , PaymentId , RecipientOnionFields } ;
19
19
use crate :: ln:: msgs;
20
20
use crate :: ln:: msgs:: { ChannelMessageHandler , RoutingMessageHandler , ErrorAction } ;
21
- use crate :: routing:: router:: { RouteParameters , PaymentParameters } ;
22
21
use crate :: util:: test_channel_signer:: TestChannelSigner ;
23
22
use crate :: util:: test_utils;
24
23
use crate :: util:: errors:: APIError ;
25
24
use crate :: util:: ser:: { Writeable , ReadableArgs } ;
26
25
use crate :: util:: config:: UserConfig ;
27
- use crate :: util:: string:: UntrustedString ;
28
26
29
27
use bitcoin:: hash_types:: BlockHash ;
30
28
@@ -496,6 +494,9 @@ fn test_manager_serialize_deserialize_inconsistent_monitor() {
496
494
497
495
#[ cfg( feature = "std" ) ]
498
496
fn do_test_data_loss_protect ( reconnect_panicing : bool , substantially_old : bool , not_stale : bool ) {
497
+ use crate :: routing:: router:: { RouteParameters , PaymentParameters } ;
498
+ use crate :: ln:: channelmanager:: Retry ;
499
+ use crate :: util:: string:: UntrustedString ;
499
500
// When we get a data_loss_protect proving we're behind, we immediately panic as the
500
501
// chain::Watch API requirements have been violated (e.g. the user restored from a backup). The
501
502
// panic message informs the user they should force-close without broadcasting, which is tested
0 commit comments