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

adds eth_hashrate RPC method #698

Merged
merged 3 commits into from
Apr 28, 2015
Merged

adds eth_hashrate RPC method #698

merged 3 commits into from
Apr 28, 2015

Conversation

kobigurk
Copy link
Contributor

No description provided.

@@ -62,6 +62,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
*reply = newHexData(api.xeth().Coinbase())
case "eth_mining":
*reply = api.xeth().IsMining()
case "eth_hashrate":
*reply = api.xeth().HashRate()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see anything on the spec page for this, but it probably needs to be wrapped in a call to newHexNum() so that the output is consistent with other number formats.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably a valid point!

@obscuren
Copy link
Contributor

I'll support this method if you move it under ext_ rather than eth_.

@obscuren
Copy link
Contributor

A bit anal, but please remove the GetHashRate methods :-)

@tgerring
Copy link
Contributor

Suggesting both clients change name to eth_miningRate with reasoning at ethereum/aleth#1724 (comment)

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.

3 participants