We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b80d5 commit 5ab6419Copy full SHA for 5ab6419
test/functional/feature_init.py
@@ -5,6 +5,7 @@
5
"""Stress tests related to node initialization."""
6
import os
7
from pathlib import Path
8
+from random import randint
9
import shutil
10
11
from test_framework.test_framework import BitcoinTestFramework, SkipTest
@@ -137,8 +138,8 @@ def check_clean_start():
137
138
# Since the genesis block is not checked by -checkblocks, the
139
# perturbation window must be chosen such that a higher block
140
# in blk*.dat is affected.
- tf.seek(150)
141
- tf.write(b'1' * 200)
+ tf.seek(randint (150, 15000))
142
+ tf.write(b'1' * randint(20, 2000))
143
144
start_expecting_error(err_fragment)
145
0 commit comments