mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 04:56:36 +00:00
#612 rename eth_protocol method
This commit is contained in:
parent
86ba7432a9
commit
02fb83782e
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
|
||||||
case "net_peerCount":
|
case "net_peerCount":
|
||||||
v := api.xeth().PeerCount()
|
v := api.xeth().PeerCount()
|
||||||
*reply = common.ToHex(big.NewInt(int64(v)).Bytes())
|
*reply = common.ToHex(big.NewInt(int64(v)).Bytes())
|
||||||
case "eth_version":
|
case "eth_protocolVersion":
|
||||||
*reply = api.xeth().EthVersion()
|
*reply = api.xeth().EthVersion()
|
||||||
case "eth_coinbase":
|
case "eth_coinbase":
|
||||||
// TODO handling of empty coinbase due to lack of accounts
|
// TODO handling of empty coinbase due to lack of accounts
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue