aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/database.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethdb/database.go')
-rw-r--r--ethdb/database.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go
index a4a27303a..479c54b60 100644
--- a/ethdb/database.go
+++ b/ethdb/database.go
@@ -100,6 +100,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