aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-24 01:30:11 +0800
committerobscuren <geffobscura@gmail.com>2015-03-24 01:30:11 +0800
commitf2f65c1a65d39a31fa0c6ed574fb2a6e213de5d4 (patch)
treeee4f85745fc5f863464453edbd47d90d107efd16 /rpc/api.go
parentc8e9ca048327d7074cfd58137ebf89e065763b71 (diff)
parent90c710fd2687a0c9f3b3e4f5f3b9b69febc506e8 (diff)
downloaddexon-f2f65c1a65d39a31fa0c6ed574fb2a6e213de5d4.tar
dexon-f2f65c1a65d39a31fa0c6ed574fb2a6e213de5d4.tar.gz
dexon-f2f65c1a65d39a31fa0c6ed574fb2a6e213de5d4.tar.bz2
dexon-f2f65c1a65d39a31fa0c6ed574fb2a6e213de5d4.tar.lz
dexon-f2f65c1a65d39a31fa0c6ed574fb2a6e213de5d4.tar.xz
dexon-f2f65c1a65d39a31fa0c6ed574fb2a6e213de5d4.tar.zst
dexon-f2f65c1a65d39a31fa0c6ed574fb2a6e213de5d4.zip
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 4cd88aa71..4bc199176 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -44,6 +44,10 @@ func (api *EthereumApi) xethAtStateNum(num int64) *xeth.XEth {
return api.xeth().AtStateNum(num)
}
+func (api *EthereumApi) Close() {
+ api.db.Close()
+}
+
func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error {
// Spec at https://github.com/ethereum/wiki/wiki/Generic-JSON-RPC
rpclogger.Debugf("%s %s", req.Method, req.Params)
@@ -58,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":