Skip to content

cmd/geth: corrently init gas price for CLI CPU mining #14677

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

Merged
merged 1 commit into from
Jun 22, 2017

Conversation

karalabe
Copy link
Member

The miner can be started via 3 different ways:

  • From the CLI via --mine
  • From the API via miner.start
  • From the API via eth.getWork

The latter two called eth.PrivateMinerAPI.Start, which correctly raised the minimum gas price of the txpool from 1 Wei to whatever was configured in the CLI --gasprice. The former however started the miner directly, not via the API, and didn't update the txpool gas. As such, it kept using the 1 Wei gas limit.

This issue does not affect mainnet, as it's only relevant for CLI mining, which can only do CPU mining.

@karalabe karalabe added this to the 1.6.6 milestone Jun 22, 2017
@karalabe karalabe merged commit c98d9b4 into ethereum:master Jun 22, 2017
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