11
11
//! nodes for functional tests.
12
12
13
13
use crate :: chain:: { BestBlock , ChannelMonitorUpdateStatus , Confirm , Listen , Watch , chainmonitor:: Persist } ;
14
- use crate :: sign:: EntropySource ;
15
14
use crate :: chain:: channelmonitor:: ChannelMonitor ;
16
15
use crate :: chain:: transaction:: OutPoint ;
17
16
use crate :: events:: { ClaimedHTLC , ClosureReason , Event , HTLCDestination , MessageSendEvent , MessageSendEventsProvider , PathFailure , PaymentPurpose , PaymentFailureReason } ;
18
17
use crate :: events:: bump_transaction:: { BumpTransactionEvent , BumpTransactionEventHandler , Wallet , WalletSource } ;
19
18
use crate :: ln:: { ChannelId , PaymentPreimage , PaymentHash , PaymentSecret } ;
20
19
use crate :: ln:: channelmanager:: { AChannelManager , ChainParameters , ChannelManager , ChannelManagerReadArgs , RAACommitmentOrder , PaymentSendFailure , RecipientOnionFields , PaymentId , MIN_CLTV_EXPIRY_DELTA } ;
21
- use crate :: routing:: gossip:: { P2PGossipSync , NetworkGraph , NetworkUpdate } ;
22
- use crate :: routing:: router:: { self , PaymentParameters , Route , RouteParameters } ;
23
20
use crate :: ln:: features:: InitFeatures ;
24
21
use crate :: ln:: msgs;
25
22
use crate :: ln:: msgs:: { ChannelMessageHandler , RoutingMessageHandler } ;
26
- use crate :: util:: test_channel_signer:: TestChannelSigner ;
23
+ use crate :: routing:: gossip:: { P2PGossipSync , NetworkGraph , NetworkUpdate } ;
24
+ use crate :: routing:: router:: { self , PaymentParameters , Route , RouteParameters } ;
25
+ use crate :: sign:: EntropySource ;
26
+ use crate :: util:: config:: { UserConfig , MaxDustHTLCExposure } ;
27
+ use crate :: util:: errors:: APIError ;
28
+ #[ cfg( test) ]
29
+ use crate :: util:: logger:: Logger ;
27
30
use crate :: util:: scid_utils;
31
+ use crate :: util:: test_channel_signer:: TestChannelSigner ;
28
32
use crate :: util:: test_utils;
29
33
use crate :: util:: test_utils:: { panicking, TestChainMonitor , TestScorer , TestKeysInterface } ;
30
- use crate :: util:: errors:: APIError ;
31
- use crate :: util:: config:: { UserConfig , MaxDustHTLCExposure } ;
32
34
use crate :: util:: ser:: { ReadableArgs , Writeable } ;
33
- #[ cfg( test) ]
34
- use crate :: util:: logger:: Logger ;
35
35
36
36
use bitcoin:: blockdata:: block:: { Block , Header , Version } ;
37
37
use bitcoin:: blockdata:: locktime:: absolute:: LockTime ;
@@ -43,13 +43,13 @@ use bitcoin::network::constants::Network;
43
43
use bitcoin:: pow:: CompactTarget ;
44
44
use bitcoin:: secp256k1:: { PublicKey , SecretKey } ;
45
45
46
+ use alloc:: rc:: Rc ;
47
+ use core:: cell:: RefCell ;
48
+ use core:: iter:: repeat;
49
+ use core:: mem;
46
50
use crate :: io;
47
51
use crate :: prelude:: * ;
48
- use core:: cell:: RefCell ;
49
- use alloc:: rc:: Rc ;
50
52
use crate :: sync:: { Arc , Mutex , LockTestExt , RwLock } ;
51
- use core:: mem;
52
- use core:: iter:: repeat;
53
53
54
54
pub const CHAN_CONFIRM_DEPTH : u32 = 10 ;
55
55
0 commit comments