Skip to content

Commit 2e925ca

Browse files
YaroShkvoretslutter
authored andcommitted
firehose: fix optimism check in extended blocks check
1 parent f27eb5f commit 2e925ca

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

graph/src/firehose/endpoints.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ impl NetworkDetails for Arc<FirehoseEndpoint> {
8989

9090
async fn provides_extended_blocks(&self) -> anyhow::Result<bool> {
9191
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-
};
92+
let pred =
93+
if info.chain_name.contains("arbitrum-one") || info.chain_name.contains("optimism") {
94+
|x: &String| x.starts_with("extended") || x == "hybrid"
95+
} else {
96+
|x: &String| x == "extended"
97+
};
9998

10099
Ok(info.block_features.iter().any(pred))
101100
}

0 commit comments

Comments
 (0)