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

zoneconcierge: Chain info indexer snapshots the latest chain info for each epoch even without any relayer #220

Closed
SebastianElvis opened this issue Nov 25, 2022 · 0 comments · Fixed by #221
Assignees

Comments

@SebastianElvis
Copy link
Member

SebastianElvis commented Nov 25, 2022

Currently, ZoneConcierge snapshots each of the chain info upon an epoch ends. However, it's possible that the relayer is down for epochs and the chain info is not updated for many epochs. In this case, the FinalizedChainInfo API needs to

  • Find the finalised epoch
  • Find the chain info in the last finalised epoch
  • Check the epoch number recorded in this chain info (It's possible that the epoch number is smaller than the last finalised epoch)
  • Find the chain info of this epoch number
  • Do the rest of things
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant