mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
lncfg+lnd: prefix etcd db with only network name instead of full path
This commit is contained in:
4
lnd.go
4
lnd.go
@@ -250,7 +250,9 @@ func Main(cfg *Config, lisCfg ListenerCfg, shutdownChan <-chan struct{}) error {
|
||||
ltndLog.Infof("Opening the main database, this might take a few " +
|
||||
"minutes...")
|
||||
|
||||
chanDbBackend, err := cfg.DB.GetBackend(cfg.localDatabaseDir())
|
||||
chanDbBackend, err := cfg.DB.GetBackend(
|
||||
cfg.localDatabaseDir(), cfg.networkName(),
|
||||
)
|
||||
if err != nil {
|
||||
ltndLog.Error(err)
|
||||
return err
|
||||
|
Reference in New Issue
Block a user