From acde483df3f3a2e0fc8be6eb3de7a25fcba3a467 Mon Sep 17 00:00:00 2001 From: Dan Coombs Date: Wed, 23 Oct 2024 09:50:35 -0500 Subject: [PATCH] fix(provider): fail-open if fjord check fails with rpc error (#880) --- crates/provider/src/alloy/da/local/bedrock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/provider/src/alloy/da/local/bedrock.rs b/crates/provider/src/alloy/da/local/bedrock.rs index 4c5ff370e..ef48704f6 100644 --- a/crates/provider/src/alloy/da/local/bedrock.rs +++ b/crates/provider/src/alloy/da/local/bedrock.rs @@ -149,7 +149,7 @@ where .await .map(|r| r.isFjord) .map_err(|e| error!("failed to check if fjord: {:?}", e)) - .unwrap_or(false) + .unwrap_or(true) // Fail-open. Assume fjord if we can't check, so this can be used downstream in asserts w/o panic on RPC errors. } async fn get_block_data(