From 9134a651761436438056705a0fda053462b370ba Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Sat, 20 Aug 2022 07:25:21 -0400 Subject: [PATCH] Be more permissive about start when IBDing from nothing --- runner/benchmarks.py | 6 ++++++ runner/requirements.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/runner/benchmarks.py b/runner/benchmarks.py index 65c2da4..7b997ec 100644 --- a/runner/benchmarks.py +++ b/runner/benchmarks.py @@ -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( ( diff --git a/runner/requirements.txt b/runner/requirements.txt index 3e27b88..e35a9ed 100644 --- a/runner/requirements.txt +++ b/runner/requirements.txt @@ -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