Implement RPC net_version

This commit is contained in:
Taylor Gerring
2015-03-23 18:06:05 +01:00
parent 60020add74
commit e954c24af0
3 changed files with 11 additions and 7 deletions

View File

@ -62,7 +62,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
case "web3_clientVersion":
*reply = api.xeth().Backend().Version()
case "net_version":
return NewNotImplementedError(req.Method)
*reply = string(api.xeth().Backend().ProtocolVersion())
case "net_listening":
*reply = api.xeth().IsListening()
case "net_peerCount":