Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Comments

WIP: make sure validate_header also validates seal on parent#1876

Draft
cburgdorf wants to merge 1 commit intoethereum:mainfrom
cburgdorf:christoph/fix/validate-header
Draft

WIP: make sure validate_header also validates seal on parent#1876
cburgdorf wants to merge 1 commit intoethereum:mainfrom
cburgdorf:christoph/fix/validate-header

Conversation

@cburgdorf
Copy link
Contributor

What was wrong?

In CliqueConsensus we can not validate a seal on a header if we haven't validated the seal of the parent. But that's exactly what can happen when using validate_header. This was causing a bug during Görli sync that I just had ignored so far.

How was it fixed?

THE IMPLEMENTATION IS JUST AN EXAMPLE

We probably want to fix that on the Clique level to not waste cpu cycles when it's not needed.

I'm going to wait until the dust around #1874 / #1875 has settled before I attempt to send a proper fix.

To-Do

  • Clean up commit history

Cute Animal Picture

put a cute animal picture link inside the parentheses

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant