channeldb+lnd: make channeldb backend configurable

This commit adds support for user configured channeldb backend.
This commit is contained in:
Andras Banki-Horvath
2020-03-13 17:06:58 +01:00
parent 9d57c1a6b4
commit 0e3629e2c7
3 changed files with 11 additions and 6 deletions

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))
}