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

chore: add slot finality checking #255

Merged
merged 5 commits into from
Aug 26, 2024
Merged

Conversation

AlexanderLukin
Copy link
Contributor

Check that the block returned by the node for the given block ID is finalized and, if not, use the fallback node.

Fix some lint errors.

Check that the block returned by the node for the given block ID is
finalized and, if not, use the fallback node.

Fix some lint errors.
Move the reading of the `workingMode` from the env config from specific
methods to the service constructor.
1. Add checking of block finalization to some other methods of the
Consensus Provider service.

2. Now the finalization check in the appropriate methods also checks
that the method is not querying the head block.

3. Remove unused methods from the Consensus Provider service.
Reorganize conditions that are checked in the `useFallbackOnResolved`
callback. Now the most frequent ones are checked first.
Remove the word "state" from the error logs in the
`useFallbackOnResolved` callback where it is unnecessary.
@AlexanderLukin AlexanderLukin merged commit 3b1b9ef into develop Aug 26, 2024
5 checks passed
@AlexanderLukin AlexanderLukin deleted the chore/check-slot-finality branch August 26, 2024 11:55
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