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
2025-06-17 20:42:09 +02:00
committed by Olaoluwa Osuntokun
parent 684da273b0
commit 988e78177a
7 changed files with 62 additions and 5 deletions

View File

@@ -95,6 +95,8 @@ type DB struct {
PruneRevocation bool `long:"prune-revocation" description:"Run the optional migration that prunes the revocation logs to save disk space."`
NoRevLogAmtData bool `long:"no-rev-log-amt-data" description:"If set, the to-local and to-remote output amounts of revoked commitment transactions will not be stored in the revocation log. Note that once this data is lost, a watchtower client will not be able to back up the revoked state."`
NoGcDecayedLog bool `long:"no-gc-decayed-log" description:"Do not run the optional migration that garbage collects the decayed log to save disk space."`
}
// DefaultDB creates and returns a new default DB config.