mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
delete unnecessary code
This commit is contained in:
parent
c866e5e725
commit
7e6a0fe7e6
1 changed files with 0 additions and 8 deletions
|
@ -113,18 +113,10 @@ class WalletMigrationTest(BitcoinTestFramework):
|
|||
if wallet_name == "":
|
||||
src_path = self.old_node.wallets_path / "wallet.dat"
|
||||
dst_path = self.master_node.wallets_path / "wallet.dat"
|
||||
# On Windows, we need to close all open file handles before copying
|
||||
if is_windows:
|
||||
import gc
|
||||
gc.collect() # Try to release any file handles
|
||||
shutil.copyfile(src_path, dst_path)
|
||||
else:
|
||||
src_path = self.old_node.wallets_path / wallet_name
|
||||
dst_path = self.master_node.wallets_path / wallet_name
|
||||
# On Windows, we need to close all open file handles before copying
|
||||
if is_windows:
|
||||
import gc
|
||||
gc.collect() # Try to release any file handles
|
||||
|
||||
# Create the directory first if it doesn't exist
|
||||
os.makedirs(dst_path, exist_ok=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue