mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 08:31:49 +01:00
test: remove mempool.dat before copying
Renaming mempool.dat from old node to new node fails on windows as the file already exists.
This commit is contained in:
@@ -56,6 +56,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
|
||||
self.log.info("Move mempool.dat from old to new node")
|
||||
old_node_mempool = old_node.chain_path / "mempool.dat"
|
||||
new_node_mempool = new_node.chain_path / "mempool.dat"
|
||||
new_node_mempool.unlink()
|
||||
old_node_mempool.rename(new_node_mempool)
|
||||
|
||||
self.log.info("Start new node and verify mempool contains the tx")
|
||||
|
||||
Reference in New Issue
Block a user