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

miner: suspend miner if node is syncing #27218

Merged
merged 1 commit into from
May 31, 2023

Conversation

rjl493456442
Copy link
Member

@rjl493456442 rjl493456442 commented May 4, 2023

This PR does a few things listed below

  • Disable activities(e.g. generate pending state) while node is syncing
  • Disable empty block submission(but empty block is still kept for payload building)
  • Drop uncle notion since ethash is already deprecated

@rjl493456442 rjl493456442 force-pushed the prevent-miner branch 2 times, most recently from 1f117be to 51fd1f8 Compare May 5, 2023 05:50
@rjl493456442 rjl493456442 marked this pull request as ready for review May 5, 2023 05:59
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

Looks good to me, but a bit of discussion at triage is probably for the better

@holiman
Copy link
Contributor

holiman commented May 25, 2023

LGTM, let's merge after the release

@holiman holiman merged commit d496188 into ethereum:master May 31, 2023
@holiman holiman added this to the 1.12.1 milestone May 31, 2023
meowsbits added a commit to etclabscore/ethereum.go-ethereum that referenced this pull request Aug 31, 2023
This reverts commit d496188.

 Conflicts:
	miner/worker.go
	miner/worker_test.go
github-merge-queue bot pushed a commit to dogechain-lab/dbsc that referenced this pull request Nov 10, 2023
### Description

- backporting ethereum/go-ethereum#27218 
- remove `commitWork` delay, delay exist the `Seal` stage, `commitWork`
delay causing timing confusion.
- change `Seal` stage delay, reduce chain reorganization

---------

Signed-off-by: 0xcb9ff9 <0xcb9ff9@proton.me>
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
Drop the notions of uncles, and disables activities while syncing

-  Disable activities (e.g. generate pending state) while node is syncing,
-  Disable empty block submission (but empty block is still kept for payload building),
-  Drop uncle notion since (ethash is already deprecated)
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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