Skip to content

Commit

Permalink
Be more permissive about start when IBDing from nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesob committed Aug 20, 2022
1 parent d366e53 commit 9134a65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions runner/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@ def _run(self, cfg, bench_cfg):
start_delta = abs(client_blocks - bench_cfg.start_height)
allowable_start_diff = 10

if bench_cfg.start_height == 0:
# When starting from nothing, blocks come so quickly that we may well
# have connected a bunch before detecting an active RPC connection.
# Allow for this.
allowable_start_diff = 500

if server_blocks < bench_cfg.end_height:
raise RuntimeError(
(
Expand Down
2 changes: 1 addition & 1 deletion runner/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ psutil==5.7.2
numpy==1.21.0
matplotlib==3.3.1
pyyaml==5.4
pydantic==1.6.2
pydantic==1.9.1
distro==1.4.0
clii==0.2.1

0 comments on commit 9134a65

Please sign in to comment.