channeldb: final htlc resolution storage opt-in

This commit is contained in:
Joost Jager
2023-01-19 13:04:43 +01:00
parent b50d59ec2e
commit 7a785c74c4
10 changed files with 85 additions and 27 deletions

View File

@ -872,6 +872,9 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
channeldb.OptionDryRunMigration(cfg.DryRunMigration),
channeldb.OptionSetUseGraphCache(!cfg.DB.NoGraphCache),
channeldb.OptionKeepFailedPaymentAttempts(cfg.KeepFailedPaymentAttempts),
channeldb.OptionStoreFinalHtlcResolutions(
cfg.StoreFinalHtlcResolutions,
),
channeldb.OptionPruneRevocationLog(cfg.DB.PruneRevocation),
}