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

Fix finality slot #216

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Fix finality slot #216

merged 1 commit into from
Feb 27, 2024

Conversation

alrevuelta
Copy link
Collaborator

The api and the oracle were getting the latest finalized block from two different sources. The API was using the finalized checkpoints (which is wrong and is behind the real finalized slot), and the oracle was using these correct one. This caused a problem in oracle_sync_distance_slots metric, because of an underflow when substracting two wrong slots. This PR fixes it.

@alrevuelta alrevuelta merged commit e9fc54e into main Feb 27, 2024
4 checks passed
@alrevuelta alrevuelta deleted the fix-finalized-api branch February 27, 2024 10:34
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.

2 participants