Przeglądaj źródła

uses newHexNum for eth_hashrate

Kobi Gurkan 10 lat temu
rodzic
commit
63c5c7fb2d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      rpc/api.go

+ 1 - 1
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())