Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend failure models to allow more fine-grained error handling modes #18

Open
pharr117 opened this issue Oct 29, 2023 · 0 comments
Open

Comments

@pharr117
Copy link
Collaborator

The app currently only provides a single FailedBlock model:

https://github.com/DefiantLabs/cosmos-indexer/blob/b6ce4558874f52833dcccb605168fe0076b059ca/db/models.go#L20-L25

This model is used at a global error catching level, any error that happens in the main indexer loop marks the entire block as failed.

We want to extend the failure modes by providing ALL of the following:

  1. FailedBlock
  2. FailedTransaction
  3. FailedMessage

We will then be able to extend the possible failure modes so that we can index the other transactions in a block even if one fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant