channeldb+lnd: make channeldb backend configurable

This commit adds support for user configured channeldb backend.
This commit is contained in:
Andras Banki-Horvath committed 2020-05-22 11:26:25 +02:00
1 parent 9d57c1a6b4
commit 0e3629e2c7
3 files changed
+11 -6

No files matched your search

+2 -2
View File
@@ -1096,8 +1096,8 @@ func ValidateConfig(cfg Config, usageMessage string) (*Config, error) {
// localDatabaseDir returns the default directory where the
// local bolt db files are stored.
func (c *config) localDatabaseDir() string {
return filepath.Join(cfg.DataDir,
func (c *Config) localDatabaseDir() string {
return filepath.Join(c.DataDir,
defaultGraphSubDirname,
normalizeNetwork(activeNetParams.Name))
}