From 52ede09b172094f8fd85f8b10e7d0578059353fb Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 6 Sep 2016 00:31:30 +0200 Subject: ethdb: add accessor for database directory --- ethdb/database.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ethdb') 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 -- cgit