channeldb+lnd: make channeldb backend configurable
This commit adds support for user configured channeldb backend.
This commit is contained in:
1 parent
9d57c1a6b4
commit
0e3629e2c7
3 files changed
+11
-6
No files matched your search
@@ -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))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user