aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-15 02:47:21 +0800
committerobscuren <geffobscura@gmail.com>2015-04-15 02:47:21 +0800
commit8db7b2374cb9dc10c5cac2dd26f9e7413343d78a (patch)
treea99a8d9d89c98b83f6eff1b757d3d40ff27e31d9 /rpc
parent13eb46ea94e48003608e32795a3070657dcb0d0c (diff)
downloaddexon-8db7b2374cb9dc10c5cac2dd26f9e7413343d78a.tar
dexon-8db7b2374cb9dc10c5cac2dd26f9e7413343d78a.tar.gz
dexon-8db7b2374cb9dc10c5cac2dd26f9e7413343d78a.tar.bz2
dexon-8db7b2374cb9dc10c5cac2dd26f9e7413343d78a.tar.lz
dexon-8db7b2374cb9dc10c5cac2dd26f9e7413343d78a.tar.xz
dexon-8db7b2374cb9dc10c5cac2dd26f9e7413343d78a.tar.zst
dexon-8db7b2374cb9dc10c5cac2dd26f9e7413343d78a.zip
rpc: change eth_protocolVersion to eth_version. Closes #714
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 58a9faa5d..4b61fa3a5 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -56,7 +56,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
*reply = api.xeth().IsListening()
case "net_peerCount":
*reply = newHexNum(api.xeth().PeerCount())
- case "eth_protocolVersion":
+ case "eth_version":
*reply = api.xeth().EthVersion()
case "eth_coinbase":
*reply = newHexData(api.xeth().Coinbase())