aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-09-06 06:31:30 +0800
committerFelix Lange <fjl@twurst.com>2016-09-16 21:24:31 +0800
commit52ede09b172094f8fd85f8b10e7d0578059353fb (patch)
treeeec31f4499b86d3b9dd6267cf724bac948edb1c0 /ethdb
parentf5c432bcab70ddc818db90ae410e07e6253585af (diff)
downloaddexon-52ede09b172094f8fd85f8b10e7d0578059353fb.tar
dexon-52ede09b172094f8fd85f8b10e7d0578059353fb.tar.gz
dexon-52ede09b172094f8fd85f8b10e7d0578059353fb.tar.bz2
dexon-52ede09b172094f8fd85f8b10e7d0578059353fb.tar.lz
dexon-52ede09b172094f8fd85f8b10e7d0578059353fb.tar.xz
dexon-52ede09b172094f8fd85f8b10e7d0578059353fb.tar.zst
dexon-52ede09b172094f8fd85f8b10e7d0578059353fb.zip
ethdb: add accessor for database directory
Diffstat (limited to 'ethdb')
-rw-r--r--ethdb/database.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go
index f93731cfe..2e951927c 100644
--- a/ethdb/database.go
+++ b/ethdb/database.go
@@ -98,6 +98,11 @@ func NewLDBDatabase(file string, cache int, handles int) (*LDBDatabase, error) {
}, nil
}
+// Path returns the path to the database directory.
+func (db *LDBDatabase) Path() string {
+ return db.fn
+}
+
// Put puts the given key / value to the queue
func (self *LDBDatabase) Put(key []byte, value []byte) error {
// Measure the database put latency, if requested