lnd+config: export config struct and LoadConfig

As a preparation to be moved to the lncfg package, the main struct and
functions related to configuration are exported.
This commit is contained in:
Oliver Gugger committed 2020-05-14 13:05:01 +02:00
1 parent 2f84d1a819
commit 409d2c9a90
4 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -52,7 +52,7 @@ import (
)
var (
cfg *config
cfg *Config
registeredChains = newChainRegistry()
// networkDir is the path to the directory of the currently active
@@ -156,7 +156,7 @@ func Main(lisCfg ListenerCfg) error {
// Load the configuration, and parse any command line options. This
// function will also set up logging properly.
loadedConfig, err := loadConfig()
loadedConfig, err := LoadConfig()
if err != nil {
return err
}