mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#24039: prevent UnicodeDecodeError when opening log file in feature_init.py
This commit is contained in:
parent
d35af87936
commit
a6062445be
@ -93,7 +93,7 @@ class InitStressTest(BitcoinTestFramework):
|
|||||||
additional_lines = random.randint(1, num_total_logs)
|
additional_lines = random.randint(1, num_total_logs)
|
||||||
self.log.debug(f"Starting node and will exit after {additional_lines} lines")
|
self.log.debug(f"Starting node and will exit after {additional_lines} lines")
|
||||||
node.start(extra_args=['-txindex=1'])
|
node.start(extra_args=['-txindex=1'])
|
||||||
logfile = open(node.debug_log_path, 'r', encoding='utf8')
|
logfile = open(node.debug_log_path, 'rb')
|
||||||
|
|
||||||
MAX_SECS_TO_WAIT = 10
|
MAX_SECS_TO_WAIT = 10
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
Loading…
Reference in New Issue
Block a user