From 3dc90d69a64f8bb39af27fa755683589b1bc76a7 Mon Sep 17 00:00:00 2001 From: Max Edwards Date: Wed, 25 Jun 2025 21:06:10 +0100 Subject: [PATCH] test: remove mempool.dat before copying Renaming mempool.dat from old node to new node fails on windows as the file already exists. --- test/functional/mempool_compatibility.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/mempool_compatibility.py b/test/functional/mempool_compatibility.py index 7c72aaae773..51b0cd63b2b 100755 --- a/test/functional/mempool_compatibility.py +++ b/test/functional/mempool_compatibility.py @@ -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")