@@ -18,6 +18,9 @@ use common::rng::Crng;
1818use common:: shutdown:: ShutdownChannel ;
1919use common:: task:: LxTask ;
2020use futures:: future;
21+ use lexe_ln:: alias:: {
22+ BlockSourceType , BroadcasterType , FeeEstimatorType , WalletType ,
23+ } ;
2124use lexe_ln:: bitcoind:: LexeBitcoind ;
2225use lexe_ln:: keys_manager:: LexeKeysManager ;
2326use lexe_ln:: logger:: LexeTracingLogger ;
@@ -44,9 +47,8 @@ use crate::lexe::peer_manager::NodePeerManager;
4447use crate :: lexe:: persister:: NodePersister ;
4548use crate :: lexe:: sync:: SyncedChainListeners ;
4649use crate :: types:: {
47- ApiClientType , BlockSourceType , BroadcasterType , ChainMonitorType ,
48- ChannelMonitorType , FeeEstimatorType , InvoicePayerType , NetworkGraphType ,
49- P2PGossipSyncType , PaymentInfoStorageType , WalletType ,
50+ ApiClientType , ChainMonitorType , ChannelMonitorType , InvoicePayerType ,
51+ NetworkGraphType , P2PGossipSyncType , PaymentInfoStorageType ,
5052} ;
5153use crate :: { api, command} ;
5254
@@ -55,9 +57,7 @@ pub const DEFAULT_CHANNEL_SIZE: usize = 256;
5557const P2P_RECONNECT_INTERVAL : Duration = Duration :: from_secs ( 60 ) ;
5658const SHUTDOWN_JOIN_TIMEOUT : Duration = Duration :: from_secs ( 15 ) ;
5759
58- // TODO: Remove once keys_manager, persister, invoice_payer are read in SGX
59- #[ allow( dead_code) ]
60- pub struct LexeNode {
60+ pub struct UserNode {
6161 // --- General --- //
6262 args : RunArgs ,
6363 pub peer_port : Port ,
@@ -70,11 +70,12 @@ pub struct LexeNode {
7070 pub persister : NodePersister ,
7171 chain_monitor : Arc < ChainMonitorType > ,
7272 pub network_graph : Arc < NetworkGraphType > ,
73+ #[ allow( dead_code) ]
7374 invoice_payer : Arc < InvoicePayerType > ,
7475 pub wallet : Arc < WalletType > ,
7576 block_source : Arc < BlockSourceType > ,
76- fee_estimator : Arc < FeeEstimatorType > ,
7777 broadcaster : Arc < BroadcasterType > ,
78+ fee_estimator : Arc < FeeEstimatorType > ,
7879 logger : LexeTracingLogger ,
7980 inactivity_timer : InactivityTimer ,
8081
@@ -84,12 +85,14 @@ pub struct LexeNode {
8485 channel_manager_blockhash : BlockHash ,
8586
8687 // --- Run --- //
88+ #[ allow( dead_code) ]
8789 inbound_payments : PaymentInfoStorageType ,
90+ #[ allow( dead_code) ]
8891 outbound_payments : PaymentInfoStorageType ,
8992 shutdown : ShutdownChannel ,
9093}
9194
92- impl LexeNode {
95+ impl UserNode {
9396 #[ instrument( skip_all) ]
9497 pub async fn init < R : Crng > (
9598 rng : & mut R ,
@@ -340,8 +343,8 @@ impl LexeNode {
340343 shutdown. clone ( ) ,
341344 ) ;
342345
343- // Build and return the LexeNode
344- let node = LexeNode {
346+ // Build and return the UserNode
347+ let node = UserNode {
345348 // General
346349 args,
347350 peer_port,
0 commit comments