diff options
author | tdb3 <106488469+tdb3@users.noreply.github.com> | 2024-08-20 20:12:00 -0400 |
---|---|---|
committer | tdb3 <106488469+tdb3@users.noreply.github.com> | 2024-08-25 08:43:33 -0400 |
commit | 1ad999b9da39b60e16c51f9813f4fd39b7bdc2b9 (patch) | |
tree | 2efa19014dbd6bb244e91a6d35d53e42432517c4 | |
parent | d8399584dd59b3954a0bea393b2de350a732055e (diff) |
refactor: lift NUM_XOR_BYTES
-rwxr-xr-x | test/functional/test_framework/test_node.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index ce34ef6f5f..4ac7db2030 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -43,6 +43,9 @@ from .util import ( ) BITCOIND_PROC_WAIT_TIMEOUT = 60 +# The size of the blocks xor key +# from InitBlocksdirXorKey::xor_key.size() +NUM_XOR_BYTES = 8 class FailedToStartError(Exception): @@ -471,7 +474,6 @@ class TestNode(): def read_xor_key(self) -> bytes: with open(self.blocks_key_path, "rb") as xor_f: - NUM_XOR_BYTES = 8 # From InitBlocksdirXorKey::xor_key.size() return xor_f.read(NUM_XOR_BYTES) @property |