lncfg+lnd: prefix etcd db with only network name instead of full path

This commit is contained in:
Andras Banki-Horvath
2020-05-20 14:04:34 +02:00
parent c3fcfd1530
commit b53475da14
3 changed files with 11 additions and 5 deletions

View File

@@ -1102,6 +1102,10 @@ func (c *Config) localDatabaseDir() string {
normalizeNetwork(activeNetParams.Name))
}
func (c *Config) networkName() string {
return normalizeNetwork(activeNetParams.Name)
}
// CleanAndExpandPath expands environment variables and leading ~ in the
// passed path, cleans the result, and returns it.
// This function is taken from https://github.com/btcsuite/btcd