mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
refactor: lift NUM_XOR_BYTES
This commit is contained in:
parent
d8399584dd
commit
1ad999b9da
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue