From 1ad999b9da39b60e16c51f9813f4fd39b7bdc2b9 Mon Sep 17 00:00:00 2001 From: tdb3 <106488469+tdb3@users.noreply.github.com> Date: Tue, 20 Aug 2024 20:12:00 -0400 Subject: refactor: lift NUM_XOR_BYTES --- test/functional/test_framework/test_node.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3