Implement RPC net_version

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

No files matched your search

+1 -1
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":