aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorKobi Gurkan <kobigurk@gmail.com>2015-04-13 03:04:08 +0800
committerKobi Gurkan <kobigurk@gmail.com>2015-04-21 21:44:08 +0800
commit63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7 (patch)
treeef57395ec5ba94ed66d39e92183a1cb6ade067c6 /rpc
parent41b83fe1cd6d49ee68ab44aa87812d716f0e4399 (diff)
downloaddexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.tar.gz
dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.tar.zst
dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.zip
uses newHexNum for eth_hashrate
Diffstat (limited to 'rpc')
-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())