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

consensus/bor: validate valset from header at sprint end #7438

Merged

Conversation

manav2401
Copy link
Contributor

@manav2401 manav2401 commented May 4, 2023

This PR adds changes from maticnetwork/bor#768 and maticnetwork/bor#787.

Note that bor fetches the data from the child chain contract via getBorValidators method while erigon does it via fetching the required span from heimdall (or cache if present). Hence, as done in bor, we don't really need to create new methods to get data via block number or hash.

Copy link
Collaborator

@cffls cffls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlexeyAkhunov
Copy link
Contributor

could you please pull the latest devel, not sure what is causing such test errors

@AlexeyAkhunov AlexeyAkhunov merged commit b4fc18a into erigontech:devel May 9, 2023
@manav2401 manav2401 deleted the manav/validate-header-extradata branch May 11, 2023 05: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.

4 participants