We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d161096 commit e1d5dd7Copy full SHA for e1d5dd7
test/functional/feature_blocksxor.py
@@ -5,7 +5,10 @@
5
"""Test support for XORed block data and undo files (`-blocksxor` option)."""
6
7
from test_framework.test_framework import BitcoinTestFramework
8
-from test_framework.test_node import ErrorMatch
+from test_framework.test_node import (
9
+ ErrorMatch,
10
+ NULL_BLK_XOR_KEY,
11
+)
12
from test_framework.util import (
13
assert_equal,
14
assert_greater_than,
@@ -57,6 +60,8 @@ def run_test(self):
57
60
# checklevel=2 -> verify block validity + undo data
58
61
# nblocks=0 -> verify all blocks
59
62
node.verifychain(checklevel=2, nblocks=0)
63
+ self.log.info("Check that blocks XOR key is recreated")
64
+ assert_equal(node.read_xor_key(), NULL_BLK_XOR_KEY)
65
66
67
if __name__ == '__main__':
0 commit comments