We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27eb5f commit 2e925caCopy full SHA for 2e925ca
1 file changed
graph/src/firehose/endpoints.rs
@@ -89,13 +89,12 @@ impl NetworkDetails for Arc<FirehoseEndpoint> {
89
90
async fn provides_extended_blocks(&self) -> anyhow::Result<bool> {
91
let info = self.clone().info().await?;
92
- let pred = if info.chain_name.contains("arbitrum-one")
93
- || info.chain_name.contains("optimism-mainnet")
94
- {
95
- |x: &String| x.starts_with("extended") || x == "hybrid"
96
- } else {
97
- |x: &String| x == "extended"
98
- };
+ let pred =
+ if info.chain_name.contains("arbitrum-one") || info.chain_name.contains("optimism") {
+ |x: &String| x.starts_with("extended") || x == "hybrid"
+ } else {
+ |x: &String| x == "extended"
+ };
99
100
Ok(info.block_features.iter().any(pred))
101
}
0 commit comments