Skip to content

Commit 52ede09

Browse files
committed
ethdb: add accessor for database directory
1 parent f5c432b commit 52ede09

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎ethdb/database.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ func NewLDBDatabase(file string, cache int, handles int) (*LDBDatabase, error) {
9898
}, nil
9999
}
100100

101+
// Path returns the path to the database directory.
102+
func (db *LDBDatabase) Path() string {
103+
return db.fn
104+
}
105+
101106
// Put puts the given key / value to the queue
102107
func (self *LDBDatabase) Put(key []byte, value []byte) error {
103108
// Measure the database put latency, if requested

0 commit comments

Comments
 (0)