@@ -14,7 +14,7 @@ use crate::chain::{BestBlock, ChannelMonitorUpdateStatus, Confirm, Listen, Watch
1414use crate :: chain:: channelmonitor:: ChannelMonitor ;
1515use crate :: chain:: transaction:: OutPoint ;
1616use crate :: events:: { ClaimedHTLC , ClosureReason , Event , HTLCHandlingFailureType , PaidBolt12Invoice , PathFailure , PaymentFailureReason , PaymentPurpose } ;
17- use crate :: events:: bump_transaction:: { BumpTransactionEvent , BumpTransactionEventHandler , Wallet , WalletSourceSync , WalletSourceSyncWrapper } ;
17+ use crate :: events:: bump_transaction:: { BumpTransactionEvent , BumpTransactionEventHandler , WalletSourceSync , WalletSync } ;
1818use crate :: ln:: types:: ChannelId ;
1919use crate :: types:: features:: ChannelTypeFeatures ;
2020use crate :: types:: payment:: { PaymentPreimage , PaymentHash , PaymentSecret } ;
@@ -472,7 +472,7 @@ pub struct Node<'chan_man, 'node_cfg: 'chan_man, 'chan_mon_cfg: 'node_cfg> {
472472 pub wallet_source : Arc < test_utils:: TestWalletSource > ,
473473 pub bump_tx_handler : BumpTransactionEventHandler <
474474 & ' chan_mon_cfg test_utils:: TestBroadcaster ,
475- Arc < Wallet < Arc < WalletSourceSyncWrapper < Arc < test_utils:: TestWalletSource > > > , & ' chan_mon_cfg test_utils:: TestLogger > > ,
475+ Arc < WalletSync < Arc < test_utils:: TestWalletSource > , & ' chan_mon_cfg test_utils:: TestLogger > > ,
476476 & ' chan_mon_cfg test_utils:: TestKeysInterface ,
477477 & ' chan_mon_cfg test_utils:: TestLogger ,
478478 > ,
@@ -3422,7 +3422,7 @@ pub fn create_network<'a, 'b: 'a, 'c: 'b>(node_count: usize, cfgs: &'b Vec<NodeC
34223422 ) ;
34233423 let gossip_sync = P2PGossipSync :: new ( cfgs[ i] . network_graph . as_ref ( ) , None , cfgs[ i] . logger ) ;
34243424 let wallet_source = Arc :: new ( test_utils:: TestWalletSource :: new ( SecretKey :: from_slice ( & [ i as u8 + 1 ; 32 ] ) . unwrap ( ) ) ) ;
3425- let wallet_source_async = Arc :: new ( WalletSourceSyncWrapper :: new ( Arc :: clone ( & wallet_source ) ) ) ;
3425+ let wallet = Arc :: new ( WalletSync :: new ( wallet_source . clone ( ) , cfgs [ i ] . logger ) ) ;
34263426 nodes. push ( Node {
34273427 chain_source : cfgs[ i] . chain_source , tx_broadcaster : cfgs[ i] . tx_broadcaster ,
34283428 fee_estimator : cfgs[ i] . fee_estimator , router : & cfgs[ i] . router ,
@@ -3434,9 +3434,9 @@ pub fn create_network<'a, 'b: 'a, 'c: 'b>(node_count: usize, cfgs: &'b Vec<NodeC
34343434 blocks : Arc :: clone ( & cfgs[ i] . tx_broadcaster . blocks ) ,
34353435 connect_style : Rc :: clone ( & connect_style) ,
34363436 override_init_features : Rc :: clone ( & cfgs[ i] . override_init_features ) ,
3437- wallet_source : Arc :: clone ( & wallet_source ) ,
3437+ wallet_source : wallet_source . clone ( ) ,
34383438 bump_tx_handler : BumpTransactionEventHandler :: new (
3439- cfgs[ i] . tx_broadcaster , Arc :: new ( Wallet :: new ( wallet_source_async , cfgs [ i ] . logger ) ) ,
3439+ cfgs[ i] . tx_broadcaster , wallet ,
34403440 & cfgs[ i] . keys_manager , cfgs[ i] . logger ,
34413441 ) ,
34423442 } )
0 commit comments