mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
[bugfix] prevent UnicodeDecodeError errors when opening log file in feature_init.py
open log file as a raw byte stream in feature_init.py (fixes #23989)
This commit is contained in:
parent
c561f2f06e
commit
9d3e95d77c
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class InitStressTest(BitcoinTestFramework):
|
|||
additional_lines = random.randint(1, num_total_logs)
|
||||
self.log.debug(f"Starting node and will exit after {additional_lines} lines")
|
||||
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
|
||||
start = time.time()
|
||||
|
|
Loading…
Add table
Reference in a new issue