diff options
author | Kobi Gurkan <kobigurk@gmail.com> | 2015-04-13 03:04:08 +0800 |
---|---|---|
committer | Kobi Gurkan <kobigurk@gmail.com> | 2015-04-21 21:44:08 +0800 |
commit | 63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7 (patch) | |
tree | ef57395ec5ba94ed66d39e92183a1cb6ade067c6 /rpc | |
parent | 41b83fe1cd6d49ee68ab44aa87812d716f0e4399 (diff) | |
download | dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.tar dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.tar.gz dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.tar.bz2 dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.tar.lz dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.tar.xz dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.tar.zst dexon-63c5c7fb2dab6ec931acf2c0c44728bd2068e1a7.zip |
uses newHexNum for eth_hashrate
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 2 |
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()) |