Skip to content

Commit 1ad999b

Browse files
committed
refactor: lift NUM_XOR_BYTES
1 parent d839958 commit 1ad999b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/test_framework/test_node.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
)
4444

4545
BITCOIND_PROC_WAIT_TIMEOUT = 60
46+
# The size of the blocks xor key
47+
# from InitBlocksdirXorKey::xor_key.size()
48+
NUM_XOR_BYTES = 8
4649

4750

4851
class FailedToStartError(Exception):
@@ -471,7 +474,6 @@ def blocks_key_path(self) -> Path:
471474

472475
def read_xor_key(self) -> bytes:
473476
with open(self.blocks_key_path, "rb") as xor_f:
474-
NUM_XOR_BYTES = 8 # From InitBlocksdirXorKey::xor_key.size()
475477
return xor_f.read(NUM_XOR_BYTES)
476478

477479
@property

0 commit comments

Comments
 (0)