channeldb/db: exposes Path method, useful for testing

This commit is contained in:
Conner Fromknecht 2017-12-13 01:28:58 -08:00
parent 1d69526874
commit 95b788e9a6
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -88,6 +88,11 @@ func Open(dbPath string) (*DB, error) {
return chanDB, nil
}
// Path returns the file path to the channel database.
func (d *DB) Path() string {
return d.dbPath
}
// Wipe completely deletes all saved state within all used buckets within the
// database. The deletion is done in a single transaction, therefore this
// operation is fully atomic.