diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-24 01:06:05 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-24 01:06:05 +0800 |
commit | e954c24af02802cdee0870230b6dcfc898dd07cd (patch) | |
tree | 4e0a620ee3383bd2c41ce9531e3c25cbdc42c6f1 /rpc | |
parent | 60020add74c40225e81122071d20c30f24832007 (diff) | |
download | go-tangerine-e954c24af02802cdee0870230b6dcfc898dd07cd.tar go-tangerine-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.gz go-tangerine-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.bz2 go-tangerine-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.lz go-tangerine-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.xz go-tangerine-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.zst go-tangerine-e954c24af02802cdee0870230b6dcfc898dd07cd.zip |
Implement RPC net_version
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 2 |
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": |