From 458a0901d3b72b8c21cde7993f86ad1b00662b0c Mon Sep 17 00:00:00 2001 From: James Wilson Date: Fri, 15 Aug 2025 15:54:41 +0100 Subject: [PATCH] 30s timeout --- crates/config/src/lib.rs | 2 +- crates/node/src/geth.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs index 569fb95..8787b71 100644 --- a/crates/config/src/lib.rs +++ b/crates/config/src/lib.rs @@ -55,7 +55,7 @@ pub struct Arguments { pub geth: PathBuf, /// The maximum time in milliseconds to wait for geth to start. - #[arg(long = "geth-start-timeout", default_value = "10000")] + #[arg(long = "geth-start-timeout", default_value = "30000")] pub geth_start_timeout: u64, /// The test network chain ID. diff --git a/crates/node/src/geth.rs b/crates/node/src/geth.rs index 9c751de..9268465 100644 --- a/crates/node/src/geth.rs +++ b/crates/node/src/geth.rs @@ -223,7 +223,10 @@ impl GethNode { } } if Instant::now().duration_since(start_time) > maximum_wait_time { - anyhow::bail!("Timeout in starting geth"); + anyhow::bail!( + "Timeout in starting geth: took longer than {}ms", + self.start_timeout + ); } } }