Skip to content

Commit

Permalink
fix(provider): fail-open if fjord check fails with rpc error (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
dancoombs committed Oct 23, 2024
1 parent c08633b commit e08d893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/provider/src/alloy/da/local/bedrock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e08d893

Please sign in to comment.