Skip to content

Commit

Permalink
channeldb/db: exposes Path method, useful for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cfromknecht committed Jan 5, 2018
1 parent 1d69526 commit 95b788e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions channeldb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 95b788e

Please sign in to comment.