@@ -368,31 +368,40 @@ pub struct NodeCfg<'a> {
368368 pub override_init_features : Rc < RefCell < Option < InitFeatures > > > ,
369369}
370370
371- type TestChannelManager < ' b , ' c > = ChannelManager < & ' b TestChainMonitor < ' c > , & ' c test_utils:: TestBroadcaster , & ' b test_utils:: TestKeysInterface , & ' b test_utils:: TestKeysInterface , & ' b test_utils:: TestKeysInterface , & ' c test_utils:: TestFeeEstimator , & ' b test_utils:: TestRouter < ' c > , & ' c test_utils:: TestLogger > ;
372-
373- pub struct Node < ' a , ' b : ' a , ' c : ' b > {
374- pub chain_source : & ' c test_utils:: TestChainSource ,
375- pub tx_broadcaster : & ' c test_utils:: TestBroadcaster ,
376- pub fee_estimator : & ' c test_utils:: TestFeeEstimator ,
377- pub router : & ' b test_utils:: TestRouter < ' c > ,
378- pub chain_monitor : & ' b test_utils:: TestChainMonitor < ' c > ,
379- pub keys_manager : & ' b test_utils:: TestKeysInterface ,
380- pub node : & ' a TestChannelManager < ' b , ' c > ,
381- pub network_graph : & ' a NetworkGraph < & ' c test_utils:: TestLogger > ,
382- pub gossip_sync : P2PGossipSync < & ' b NetworkGraph < & ' c test_utils:: TestLogger > , & ' c test_utils:: TestChainSource , & ' c test_utils:: TestLogger > ,
371+ type TestChannelManager < ' node_cfg , ' chan_mon_cfg > = ChannelManager <
372+ & ' node_cfg TestChainMonitor < ' chan_mon_cfg > ,
373+ & ' chan_mon_cfg test_utils:: TestBroadcaster ,
374+ & ' node_cfg test_utils:: TestKeysInterface ,
375+ & ' node_cfg test_utils:: TestKeysInterface ,
376+ & ' node_cfg test_utils:: TestKeysInterface ,
377+ & ' chan_mon_cfg test_utils:: TestFeeEstimator ,
378+ & ' node_cfg test_utils:: TestRouter < ' chan_mon_cfg > ,
379+ & ' chan_mon_cfg test_utils:: TestLogger ,
380+ > ;
381+
382+ pub struct Node < ' chan_man , ' node_cfg : ' chan_man , ' chan_mon_cfg : ' node_cfg > {
383+ pub chain_source : & ' chan_mon_cfg test_utils:: TestChainSource ,
384+ pub tx_broadcaster : & ' chan_mon_cfg test_utils:: TestBroadcaster ,
385+ pub fee_estimator : & ' chan_mon_cfg test_utils:: TestFeeEstimator ,
386+ pub router : & ' node_cfg test_utils:: TestRouter < ' chan_mon_cfg > ,
387+ pub chain_monitor : & ' node_cfg test_utils:: TestChainMonitor < ' chan_mon_cfg > ,
388+ pub keys_manager : & ' chan_mon_cfg test_utils:: TestKeysInterface ,
389+ pub node : & ' chan_man TestChannelManager < ' node_cfg , ' chan_mon_cfg > ,
390+ pub network_graph : & ' node_cfg NetworkGraph < & ' chan_mon_cfg test_utils:: TestLogger > ,
391+ pub gossip_sync : P2PGossipSync < & ' node_cfg NetworkGraph < & ' chan_mon_cfg test_utils:: TestLogger > , & ' chan_mon_cfg test_utils:: TestChainSource , & ' chan_mon_cfg test_utils:: TestLogger > ,
383392 pub node_seed : [ u8 ; 32 ] ,
384393 pub network_payment_count : Rc < RefCell < u8 > > ,
385394 pub network_chan_count : Rc < RefCell < u32 > > ,
386- pub logger : & ' c test_utils:: TestLogger ,
395+ pub logger : & ' chan_mon_cfg test_utils:: TestLogger ,
387396 pub blocks : Arc < Mutex < Vec < ( Block , u32 ) > > > ,
388397 pub connect_style : Rc < RefCell < ConnectStyle > > ,
389398 pub override_init_features : Rc < RefCell < Option < InitFeatures > > > ,
390399 pub wallet_source : Arc < test_utils:: TestWalletSource > ,
391400 pub bump_tx_handler : BumpTransactionEventHandler <
392- & ' c test_utils:: TestBroadcaster ,
393- Arc < Wallet < Arc < test_utils:: TestWalletSource > , & ' c test_utils:: TestLogger > > ,
394- & ' b test_utils:: TestKeysInterface ,
395- & ' c test_utils:: TestLogger ,
401+ & ' chan_mon_cfg test_utils:: TestBroadcaster ,
402+ Arc < Wallet < Arc < test_utils:: TestWalletSource > , & ' chan_mon_cfg test_utils:: TestLogger > > ,
403+ & ' chan_mon_cfg test_utils:: TestKeysInterface ,
404+ & ' chan_mon_cfg test_utils:: TestLogger ,
396405 > ,
397406}
398407impl < ' a , ' b , ' c > Node < ' a , ' b , ' c > {
0 commit comments