diff options
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/api.go b/rpc/api.go index 4cd88aa71..19bd9b707 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) |