Skip to content

Commit

Permalink
fixup! feat: Add consensus-independent vat snapshot retention configu…
Browse files Browse the repository at this point in the history
…ration to AG_COSMOS_INIT
  • Loading branch information
gibson042 committed Sep 6, 2024
1 parent ef36e16 commit 9b6ad1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions golang/cosmos/x/swingset/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ func SwingsetConfigFromViper(resolvedConfig servertypes.AppOptions) (*SwingsetCo
}
ssConfig := &extendedConfig.Swingset

// Validate vat snapshot retention only if non-empty (because otherwise it
// it will be omitted, leaving the VM to apply its own defaults).
if ssConfig.VatSnapshotRetention != "" {
// Validate vat snapshot retention.
if util.IndexOf(snapshotRetentionValues, ssConfig.VatSnapshotRetention) == -1 {
Expand Down

0 comments on commit 9b6ad1a

Please sign in to comment.