Merge pull request #2914 from fjl/node-coinhabit

cmd/utils, node: make datadir reusable for bzzd
This commit is contained in:
Felix Lange
2016-09-29 14:24:37 +02:00
committed by GitHub
19 changed files with 471 additions and 240 deletions

View File

@ -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