mirror of https://github.com/BTCPrivate/lnd.git
channeldb/db: exposes Path method, useful for testing
This commit is contained in:
parent
1d69526874
commit
95b788e9a6
|
@ -88,6 +88,11 @@ func Open(dbPath string) (*DB, error) {
|
||||||
return chanDB, nil
|
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
|
// Wipe completely deletes all saved state within all used buckets within the
|
||||||
// database. The deletion is done in a single transaction, therefore this
|
// database. The deletion is done in a single transaction, therefore this
|
||||||
// operation is fully atomic.
|
// operation is fully atomic.
|
||||||
|
|
Loading…
Reference in New Issue