From 95b788e9a602198090bec4e6ef87e86f6ba1339c Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 13 Dec 2017 01:28:58 -0800 Subject: [PATCH] channeldb/db: exposes Path method, useful for testing --- channeldb/db.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/channeldb/db.go b/channeldb/db.go index 74437289..26d14fd2 100644 --- a/channeldb/db.go +++ b/channeldb/db.go @@ -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.