diff options
author | tdb3 <106488469+tdb3@users.noreply.github.com> | 2024-08-20 20:19:46 -0400 |
---|---|---|
committer | tdb3 <106488469+tdb3@users.noreply.github.com> | 2024-08-25 08:43:45 -0400 |
commit | e1d5dd732d5dc641faf1dde316275c84b6bb224b (patch) | |
tree | e88819287ddf92e405c9bc72e43bd2da0eae145c | |
parent | d1610962bf1ff14df45c57cc1d2e075f71fcd19a (diff) |
test: check xor.dat recreated when missing
-rwxr-xr-x | test/functional/feature_blocksxor.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/feature_blocksxor.py b/test/functional/feature_blocksxor.py index 8ea16db7bb..7698a66ec4 100755 --- a/test/functional/feature_blocksxor.py +++ b/test/functional/feature_blocksxor.py @@ -5,7 +5,10 @@ """Test support for XORed block data and undo files (`-blocksxor` option).""" from test_framework.test_framework import BitcoinTestFramework -from test_framework.test_node import ErrorMatch +from test_framework.test_node import ( + ErrorMatch, + NULL_BLK_XOR_KEY, +) from test_framework.util import ( assert_equal, assert_greater_than, @@ -57,6 +60,8 @@ class BlocksXORTest(BitcoinTestFramework): # checklevel=2 -> verify block validity + undo data # nblocks=0 -> verify all blocks node.verifychain(checklevel=2, nblocks=0) + self.log.info("Check that blocks XOR key is recreated") + assert_equal(node.read_xor_key(), NULL_BLK_XOR_KEY) if __name__ == '__main__': |