@@ -45,10 +45,10 @@ def set_test_params(self):
45
45
# nodes 1, 2,3 are spenders, let's give them a keypool=100
46
46
# whitelist all peers to speed up tx relay / mempool sync
47
47
self .extra_args = [
48
- ["-keypool=100" , "-whitelist=127.0.0.1" , "-wallet=" ],
49
- ["-keypool=100" , "-whitelist=127.0.0.1" , "-wallet=" ],
50
- ["-keypool=100" , "-whitelist=127.0.0.1" , "-wallet=" ],
51
- ["-whitelist=127.0.0.1" , "-wallet=" ]
48
+ ["-keypool=100" , "-whitelist=127.0.0.1" ],
49
+ ["-keypool=100" , "-whitelist=127.0.0.1" ],
50
+ ["-keypool=100" , "-whitelist=127.0.0.1" ],
51
+ ["-whitelist=127.0.0.1" ]
52
52
]
53
53
self .rpc_timeout = 120
54
54
@@ -102,9 +102,9 @@ def stop_three(self):
102
102
self .stop_node (2 )
103
103
104
104
def erase_three (self ):
105
- os .remove (os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' , 'wallet.dat' ))
106
- os .remove (os .path .join (self .nodes [1 ].datadir , self .chain , 'wallets' , 'wallet.dat' ))
107
- os .remove (os .path .join (self .nodes [2 ].datadir , self .chain , 'wallets' , 'wallet.dat' ))
105
+ os .remove (os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' , self . default_wallet_name , self . wallet_data_filename ))
106
+ os .remove (os .path .join (self .nodes [1 ].datadir , self .chain , 'wallets' , self . default_wallet_name , self . wallet_data_filename ))
107
+ os .remove (os .path .join (self .nodes [2 ].datadir , self .chain , 'wallets' , self . default_wallet_name , self . wallet_data_filename ))
108
108
109
109
def run_test (self ):
110
110
self .log .info ("Generating initial blockchain" )
@@ -168,9 +168,9 @@ def run_test(self):
168
168
shutil .rmtree (os .path .join (self .nodes [2 ].datadir , self .chain , 'llmq' ))
169
169
170
170
# Restore wallets from backup
171
- shutil .copyfile (os .path .join (self .nodes [0 ].datadir , 'wallet.bak' ), os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' , 'wallet.dat' ))
172
- shutil .copyfile (os .path .join (self .nodes [1 ].datadir , 'wallet.bak' ), os .path .join (self .nodes [1 ].datadir , self .chain , 'wallets' , 'wallet.dat' ))
173
- shutil .copyfile (os .path .join (self .nodes [2 ].datadir , 'wallet.bak' ), os .path .join (self .nodes [2 ].datadir , self .chain , 'wallets' , 'wallet.dat' ))
171
+ shutil .copyfile (os .path .join (self .nodes [0 ].datadir , 'wallet.bak' ), os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' , self . default_wallet_name , self . wallet_data_filename ))
172
+ shutil .copyfile (os .path .join (self .nodes [1 ].datadir , 'wallet.bak' ), os .path .join (self .nodes [1 ].datadir , self .chain , 'wallets' , self . default_wallet_name , self . wallet_data_filename ))
173
+ shutil .copyfile (os .path .join (self .nodes [2 ].datadir , 'wallet.bak' ), os .path .join (self .nodes [2 ].datadir , self .chain , 'wallets' , self . default_wallet_name , self . wallet_data_filename ))
174
174
175
175
self .log .info ("Re-starting nodes" )
176
176
self .start_three ()
@@ -208,9 +208,9 @@ def run_test(self):
208
208
209
209
# Backup to source wallet file must fail
210
210
sourcePaths = [
211
- os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' , 'wallet.dat' ),
212
- os .path .join (self .nodes [0 ].datadir , self .chain , '.' , 'wallets' , 'wallet.dat' ),
213
- os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' , '' ),
211
+ os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' , self . default_wallet_name , self . wallet_data_filename ),
212
+ os .path .join (self .nodes [0 ].datadir , self .chain , '.' , 'wallets' , self . default_wallet_name , self . wallet_data_filename ),
213
+ os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' , self . default_wallet_name ),
214
214
os .path .join (self .nodes [0 ].datadir , self .chain , 'wallets' )]
215
215
216
216
for sourcePath in sourcePaths :
0 commit comments