test: add blocks_key_path

Adds a convenience function to TestNode
to provide the path to the blocks xor key.
Updates util and feature_blocksxor to use it.
This commit is contained in:
tdb3 committed 2024-08-23 12:49:56 -04:00
1 parent d79ea809d2
commit c8176f758b
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ class BlocksXORTest(BitcoinTestFramework):
match=ErrorMatch.PARTIAL_REGEX)
self.log.info("Delete XOR key, restart node with '-blocksxor=0', check blk*.dat/rev*.dat file integrity")
os.remove(node.blocks_path / 'xor.dat')
os.remove(node.blocks_key_path)
self.start_node(0, extra_args=['-blocksxor=0'])
# checklevel=2 -> verify block validity + undo data
# nblocks=0 -> verify all blocks