mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-03 16:30:18 +02:00
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…
x
Reference in New Issue
Block a user