Skip to content

miner: immediately include uncles in pending block #14765

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

Closed
wants to merge 1 commit into from

Conversation

cdetrio
Copy link
Member

@cdetrio cdetrio commented Jul 6, 2017

This fixes #2902

@GitCop
Copy link

GitCop commented Jul 6, 2017

Thank you for your contribution! Your commits seem to not adhere to the repository coding standards

  • Commit: e2e9a50
  • Commits must be prefixed with the package(s) they modify

Please check the contribution guidelines for more details.


This message was auto-generated by https://gitcop.com

@karalabe
Copy link
Member

We need to rework the miner fist to permit multiple work blocks at the same time. Otherwise this would bump up the invalid share count on pools quite heavily since this invalidates the current works and starts new one. The solution seems ok btw.

@chfast
Copy link
Member

chfast commented Jul 20, 2017

@karalabe, do you mean to rework the ethminer?

@chfast
Copy link
Member

chfast commented Aug 2, 2017

Check out this ethminer build: ethereum-mining/ethminer#217.

@cdetrio
Copy link
Member Author

cdetrio commented Aug 4, 2017

What @karalabe might mean by "rework the miner" is to make sure the SubmitWork handler in remote_agent.go holds onto previously constructed pending blocks. I think it does, the only edge case I'm aware of is when two or more blocks are found at the same height (i.e. one mainchain block and then an uncle block), this delete(a.work, hash) will prevent the second submission (a found uncle block) from being accepted.

@fjl fjl changed the title immediately include uncles in pending block miner: immediately include uncles in pending block Sep 7, 2017
@karalabe
Copy link
Member

Closing this being the wrong approach, but I'll get it addressed in Gary's rework :)

@karalabe karalabe closed this Feb 20, 2018
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.

miners include uncles in the pending block only 50% of the time
4 participants