multi: Add decayedlog db migration code

This commit adds the migration code for the decayedlog db which
is optional and will default to true.
This commit is contained in:
ziggie committed 2025-06-21 09:20:19 +02:00
1 parent c7e773132b
commit d220b87b60
7 files changed
+62 -5

No files matched your search

+2
View File
@@ -1073,6 +1073,8 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
),
channeldb.OptionPruneRevocationLog(cfg.DB.PruneRevocation),
channeldb.OptionNoRevLogAmtData(cfg.DB.NoRevLogAmtData),
channeldb.OptionGcDecayedLog(cfg.DB.NoGcDecayedLog),
channeldb.OptionWithDecayedLogDB(dbs.DecayedLogDB),
}
// Otherwise, we'll open two instances, one for the state we only need