瀏覽代碼

ethdb: accessor for LDB. TODO remove this interface

obscuren 10 年之前
父節點
當前提交
2a5a55efaf
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ethdb/database.go

+ 4 - 0
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
+}