uses newHexNum for eth_hashrate
This commit is contained in:
parent
41b83fe1cd
commit
63c5c7fb2d
@ -63,7 +63,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
|
|||||||
case "eth_mining":
|
case "eth_mining":
|
||||||
*reply = api.xeth().IsMining()
|
*reply = api.xeth().IsMining()
|
||||||
case "eth_hashrate":
|
case "eth_hashrate":
|
||||||
*reply = api.xeth().HashRate()
|
*reply = newHexNum(api.xeth().HashRate())
|
||||||
case "eth_gasPrice":
|
case "eth_gasPrice":
|
||||||
v := xeth.DefaultGas()
|
v := xeth.DefaultGas()
|
||||||
*reply = newHexData(v.Bytes())
|
*reply = newHexData(v.Bytes())
|
||||||
|
Loading…
Reference in New Issue
Block a user