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

Add GethMiner snake case methods #1579

Conversation

billbsing
Copy link
Contributor

What was wrong?

Related to Issue #1429

How was it fixed?

add new methods, and mark the current non snake case method names as depreciated.

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

Thank you for taking this on @billbsing! This is looking great. If you would, let's change all instances of camelCase methods to their snake_case equivalents unless we're explicitly testing for a deprecation warning. I noticed some instances of gasPrice still floating around, and there may be others that need to be switched too. I also added a few small comments, but nothing major. Let me know if you need more clarification!

tests/core/mining-module/test_setEtherBase.py Outdated Show resolved Hide resolved
tests/core/mining-module/test_setEtherBase.py Outdated Show resolved Hide resolved

.. py:method:: GethMiner.startAutoDAG()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is existing, but we only have a startAutoDag method, not startAutoDAG. Do you mind changing?

Suggested change
.. py:method:: GethMiner.startAutoDAG()
.. py:method:: GethMiner.startAutoDag()

docs/web3.miner.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@kclowes kclowes 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! Thanks @billbsing!

@kclowes kclowes force-pushed the billbsing/change-GethMiner-methods-to-snake-case branch from 887b0aa to 21cc309 Compare February 20, 2020 22:09
@kclowes kclowes merged commit fc997a3 into ethereum:master Feb 20, 2020
@billbsing billbsing deleted the billbsing/change-GethMiner-methods-to-snake-case branch February 21, 2020 01:42
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