Skip to content

Commit 9134a65

Browse files
committed
Be more permissive about start when IBDing from nothing
1 parent d366e53 commit 9134a65

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

runner/benchmarks.py

+6
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ def _run(self, cfg, bench_cfg):
376376
start_delta = abs(client_blocks - bench_cfg.start_height)
377377
allowable_start_diff = 10
378378

379+
if bench_cfg.start_height == 0:
380+
# When starting from nothing, blocks come so quickly that we may well
381+
# have connected a bunch before detecting an active RPC connection.
382+
# Allow for this.
383+
allowable_start_diff = 500
384+
379385
if server_blocks < bench_cfg.end_height:
380386
raise RuntimeError(
381387
(

runner/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ psutil==5.7.2
44
numpy==1.21.0
55
matplotlib==3.3.1
66
pyyaml==5.4
7-
pydantic==1.6.2
7+
pydantic==1.9.1
88
distro==1.4.0
99
clii==0.2.1

0 commit comments

Comments
 (0)