Add Close() method to EthereumApi

To close the handler for LDB
This commit is contained in:
Taylor Gerring
2015-03-23 17:41:50 +01:00
parent 1e61b75cbf
commit 1cf6ca8f10
2 changed files with 5 additions and 0 deletions

View File

@ -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)