aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 8a0d759c1..620509cef 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -63,7 +63,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
case "eth_mining":
*reply = api.xeth().IsMining()
case "eth_hashrate":
- *reply = api.xeth().HashRate()
+ *reply = newHexNum(api.xeth().HashRate())
case "eth_gasPrice":
v := xeth.DefaultGas()
*reply = newHexData(v.Bytes())