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

all: remove unused clique logic #29710

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jwasinger
Copy link
Contributor

Since the latest release, Geth requires upon startup that the configured chain is known to be merged to PoS. This means that clique blocks can no longer be created.

This PR removes the associated code, and the Clique consensus object only retains logic to:

  • enable historical re-execution of pre-PoS clique blocks.
  • verify that pre-PoS portion of the header-chain is contiguous hash-wise and drop other block validation rules.

Test cases which cover the import of a chain that has been merged part-way through depend on some of the removed logic to produce a test-chain with clique blocks in the pre-merge portion. Right now, I just yolo-remove those but it's probably worth isolating any required clique-logic for those somewhere internally.

miner/miner_test.go Outdated Show resolved Hide resolved
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.

None yet

2 participants