ethdb: add accessor for database directory

pull/2914/head
Felix Lange 8 years ago
parent f5c432bcab
commit 52ede09b17
  1. 5
      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

Loading…
Cancel
Save