From 2a5a55efafa39a21a5c70afcc85dfb00c6002028 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 19 Jun 2015 16:20:49 +0200 Subject: [PATCH] ethdb: accessor for LDB. TODO remove this interface --- ethdb/database.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ethdb/database.go b/ethdb/database.go index 32ce845a08..8f55d43c3f 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -115,3 +115,7 @@ func (self *LDBDatabase) Close() { self.db.Close() glog.V(logger.Error).Infoln("flushed and closed db:", self.fn) } + +func (self *LDBDatabase) LDB() *leveldb.DB { + return self.db +}