-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
Conversation
@@ -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() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably a valid point!
I'll support this method if you move it under |
A bit anal, but please remove the GetHashRate methods :-) |
Suggesting both clients change name to |
swarm/pss: Increment pss message version
No description provided.