multi: warn user if they try to switch db types

Warn a user if they attempt to initialise a new db type (sqlite or
postgres) if an old bbolt db file is found.
This commit is contained in:
Oliver Gugger authored and Elle Mouton committed 2023-01-25 14:16:56 +02:00
1 parent c89e5b68b0
commit fe5254510e
2 files changed
+35 -2

No files matched your search

+1 -1
View File
@@ -830,7 +830,7 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
cfg.Watchtower.TowerDir,
cfg.registeredChains.PrimaryChain().String(),
lncfg.NormalizeNetwork(cfg.ActiveNetParams.Name),
), cfg.WtClient.Active, cfg.Watchtower.Active,
), cfg.WtClient.Active, cfg.Watchtower.Active, d.logger,
)
if err != nil {
return nil, nil, fmt.Errorf("unable to obtain database "+