Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
ethdb: add accessor for database directory
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Sep 16, 2016
1 parent f5c432b commit 52ede09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ethdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52ede09

Please sign in to comment.