good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 06f44c0f authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

eth: restore eth_hashrate API endpoint

parent 64b60c79
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,11 @@ func (api *PublicEthereumAPI) Coinbase() (common.Address, error) {
return api.Etherbase()
}
// Hashrate returns the POW hashrate
func (api *PublicEthereumAPI) Hashrate() hexutil.Uint64 {
return hexutil.Uint64(api.e.Miner().Hashrate())
}
// PublicMinerAPI provides an API to control the miner.
// It offers only methods that operate on data that pose no security risk when it is publicly accessible.
type PublicMinerAPI struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment