Skip to content

Commit

Permalink
Treat indexer store error as unattestable (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus authored Apr 6, 2022
1 parent 187e440 commit 5b1b121
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/query_engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,10 @@ where
return Err(IndexerError::UnresolvedBlock);
}

if indexer_response_has_error(&parsed_response, "Store error: database unavailable") {
return Err(IndexerError::NoAttestation);
}

if indexer_response_has_error(&parsed_response, "panic processing query") {
return Err(IndexerError::Panic);
}
Expand Down

0 comments on commit 5b1b121

Please sign in to comment.