Skip to content

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

Merged
AlexeyAkhunov merged 2 commits into
erigontech:develfrom
manav2401:manav/validate-header-extradata
May 9, 2023
Merged

consensus/bor: validate valset from header at sprint end#7438
AlexeyAkhunov merged 2 commits into
erigontech:develfrom
manav2401:manav/validate-header-extradata

Conversation

@manav2401

@manav2401 manav2401 commented May 4, 2023

Copy link
Copy Markdown
Contributor

This PR adds changes from 0xPolygon/bor#768 and 0xPolygon/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.

@cffls cffls left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@AlexeyAkhunov

Copy link
Copy Markdown
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