11use crate :: logger:: FilesystemLogger ;
2- use crate :: wallet:: { Wallet , WalletKeysManager } ;
32
43use lightning:: chain:: chainmonitor;
54use lightning:: ln:: channelmanager:: ChannelDetails as LdkChannelDetails ;
@@ -25,8 +24,8 @@ use std::sync::{Arc, Mutex, RwLock};
2524pub ( crate ) type ChainMonitor < K > = chainmonitor:: ChainMonitor <
2625 InMemorySigner ,
2726 Arc < EsploraSyncClient < Arc < FilesystemLogger > > > ,
28- Arc < Wallet < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
29- Arc < Wallet < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
27+ Arc < Wallet > ,
28+ Arc < Wallet > ,
3029 Arc < FilesystemLogger > ,
3130 Arc < K > ,
3231> ;
@@ -38,22 +37,25 @@ pub(crate) type PeerManager<K> = lightning::ln::peer_handler::PeerManager<
3837 Arc < OnionMessenger > ,
3938 Arc < FilesystemLogger > ,
4039 IgnoringMessageHandler ,
41- Arc < WalletKeysManager < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
40+ Arc < KeysManager > ,
4241> ;
4342
4443pub ( crate ) type ChannelManager < K > = lightning:: ln:: channelmanager:: ChannelManager <
4544 Arc < ChainMonitor < K > > ,
46- Arc < Wallet < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
47- Arc < WalletKeysManager < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
48- Arc < WalletKeysManager < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
49- Arc < WalletKeysManager < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
50- Arc < Wallet < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
45+ Arc < Wallet > ,
46+ Arc < KeysManager > ,
47+ Arc < KeysManager > ,
48+ Arc < KeysManager > ,
49+ Arc < Wallet > ,
5150 Arc < Router > ,
5251 Arc < FilesystemLogger > ,
5352> ;
5453
54+ pub ( crate ) type Wallet =
55+ crate :: wallet:: Wallet < bdk:: database:: SqliteDatabase , Arc < FilesystemLogger > > ;
56+
5557pub ( crate ) type KeysManager =
56- WalletKeysManager < bdk:: database:: SqliteDatabase , Arc < FilesystemLogger > > ;
58+ crate :: wallet :: WalletKeysManager < bdk:: database:: SqliteDatabase , Arc < FilesystemLogger > > ;
5759
5860pub ( crate ) type Router = DefaultRouter <
5961 Arc < NetworkGraph > ,
@@ -85,8 +87,8 @@ pub(crate) type GossipSync = lightning_background_processor::GossipSync<
8587> ;
8688
8789pub ( crate ) type OnionMessenger = lightning:: onion_message:: OnionMessenger <
88- Arc < WalletKeysManager < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
89- Arc < WalletKeysManager < bdk :: database :: SqliteDatabase , Arc < FilesystemLogger > > > ,
90+ Arc < KeysManager > ,
91+ Arc < KeysManager > ,
9092 Arc < FilesystemLogger > ,
9193 Arc < FakeMessageRouter > ,
9294 IgnoringMessageHandler ,
0 commit comments