aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-24 01:06:05 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-24 01:06:05 +0800
commite954c24af02802cdee0870230b6dcfc898dd07cd (patch)
tree4e0a620ee3383bd2c41ce9531e3c25cbdc42c6f1 /rpc
parent60020add74c40225e81122071d20c30f24832007 (diff)
downloaddexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.gz
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.bz2
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.lz
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.xz
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.zst
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.zip
Implement RPC net_version
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 19bd9b707..4bc199176 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -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":