aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-19 22:20:49 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-06-30 00:51:48 +0800
commit2a5a55efafa39a21a5c70afcc85dfb00c6002028 (patch)
tree0d296da8954519f36f9131a577b8f5033a86d428
parentc850c41ec108484a613600df103dbc55fe209a98 (diff)
downloadgo-tangerine-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar
go-tangerine-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.gz
go-tangerine-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.bz2
go-tangerine-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.lz
go-tangerine-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.xz
go-tangerine-2a5a55efafa39a21a5c70afcc85dfb00c6002028.tar.zst
go-tangerine-2a5a55efafa39a21a5c70afcc85dfb00c6002028.zip
ethdb: accessor for LDB. TODO remove this interface
-rw-r--r--ethdb/database.go4
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
+}