@@ -14,7 +14,7 @@ use crate::chain::{BestBlock, ChannelMonitorUpdateStatus, Confirm, Listen, Watch
14
14
use crate :: chain:: channelmonitor:: ChannelMonitor ;
15
15
use crate :: chain:: transaction:: OutPoint ;
16
16
use 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 } ;
18
18
use crate :: ln:: types:: ChannelId ;
19
19
use crate :: types:: features:: ChannelTypeFeatures ;
20
20
use crate :: types:: payment:: { PaymentPreimage , PaymentHash , PaymentSecret } ;
@@ -472,7 +472,7 @@ pub struct Node<'chan_man, 'node_cfg: 'chan_man, 'chan_mon_cfg: 'node_cfg> {
472
472
pub wallet_source : Arc < test_utils:: TestWalletSource > ,
473
473
pub bump_tx_handler : BumpTransactionEventHandler <
474
474
& ' 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 > > ,
476
476
& ' chan_mon_cfg test_utils:: TestKeysInterface ,
477
477
& ' chan_mon_cfg test_utils:: TestLogger ,
478
478
> ,
@@ -3422,7 +3422,7 @@ pub fn create_network<'a, 'b: 'a, 'c: 'b>(node_count: usize, cfgs: &'b Vec<NodeC
3422
3422
) ;
3423
3423
let gossip_sync = P2PGossipSync :: new ( cfgs[ i] . network_graph . as_ref ( ) , None , cfgs[ i] . logger ) ;
3424
3424
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 ) ) ;
3426
3426
nodes. push ( Node {
3427
3427
chain_source : cfgs[ i] . chain_source , tx_broadcaster : cfgs[ i] . tx_broadcaster ,
3428
3428
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
3434
3434
blocks : Arc :: clone ( & cfgs[ i] . tx_broadcaster . blocks ) ,
3435
3435
connect_style : Rc :: clone ( & connect_style) ,
3436
3436
override_init_features : Rc :: clone ( & cfgs[ i] . override_init_features ) ,
3437
- wallet_source : Arc :: clone ( & wallet_source ) ,
3437
+ wallet_source : wallet_source . clone ( ) ,
3438
3438
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 ,
3440
3440
& cfgs[ i] . keys_manager , cfgs[ i] . logger ,
3441
3441
) ,
3442
3442
} )
0 commit comments