Skip to content
Snippets Groups Projects
Commit d781bd7e authored by Hugo Trentesaux's avatar Hugo Trentesaux Committed by Hugo Trentesaux
Browse files

fix only check if client is initialized

parent f3801bc3
No related branches found
No related tags found
1 merge request!7Big refacto
...@@ -193,7 +193,7 @@ impl Data { ...@@ -193,7 +193,7 @@ impl Data {
gql_url: self.cfg.indexer_endpoint.clone(), gql_url: self.cfg.indexer_endpoint.clone(),
}); });
self.indexer_genesis_hash = self.indexer().fetch_genesis_hash().await?; self.indexer_genesis_hash = self.indexer().fetch_genesis_hash().await?;
if self.indexer_genesis_hash != self.genesis_hash { if self.client.is_some() && self.indexer_genesis_hash != self.genesis_hash {
println!("⚠️ indexer does not have the same genesis hash as blockchain") println!("⚠️ indexer does not have the same genesis hash as blockchain")
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment