diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-19 22:20:49 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-30 00:51:48 +0800 |
commit | 2a5a55efafa39a21a5c70afcc85dfb00c6002028 (patch) | |
tree | 0d296da8954519f36f9131a577b8f5033a86d428 | |
parent | c850c41ec108484a613600df103dbc55fe209a98 (diff) | |
download | dexon-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar dexon-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.gz dexon-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.bz2 dexon-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.lz dexon-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.xz dexon-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.zst dexon-2a5a55efafa39a21a5c70afcc85dfb00c6002028.zip |
ethdb: accessor for LDB. TODO remove this interface
-rw-r--r-- | ethdb/database.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index 32ce845a0..8f55d43c3 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 +} |