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: find the earliest epoch that finalised a chain info for the API #221

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

SebastianElvis
Copy link
Member

Fixes #220

This PR fixes a bug in the FinalizedChainInfo API that, it does not return the earliest epoch that finalised the chain info in the last finalised epoch. Specifically, it's possible that a chain info is finalised in an early epoch, then the relayer goes offline, and all subsequent epochs snapshot this chain info.

This PR fixes this by tracking the epoch number of each indexed header, such that it allows the API to find the earliest epoch that finalises this header.

@vitsalis vitsalis merged commit dd77345 into dev Nov 25, 2022
@vitsalis vitsalis deleted the zoneconcierge-epoch-chaininfo branch November 25, 2022 15:33
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 this pull request may close these issues.

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