Skip to content

Add sanity checks for weird SnapshotPolicyArgs configurations#1903

Open
fraser-iohk wants to merge 1 commit intomainfrom
fraser-iohk/snapshot-config-sanity-checks
Open

Add sanity checks for weird SnapshotPolicyArgs configurations#1903
fraser-iohk wants to merge 1 commit intomainfrom
fraser-iohk/snapshot-config-sanity-checks

Conversation

@fraser-iohk
Copy link
Copy Markdown
Contributor

@fraser-iohk fraser-iohk commented Feb 27, 2026

As discussed in #1853, we want node operators to be warned if they configure their node in a way that is likely to be broken i.e. if they disable the snapshot rate limiting, or set the number of on-disk snapshots to 0, or set a snapshot interval that isn't a clean divisor of the epoch length (which is required for Mithril). This PR implements sanity checks similar to the existing ones for the SnapshotPolicyArgs and traces warnings to the user if these guidelines are ignored.

@geo2a geo2a force-pushed the amesgen/predictable-snapshots branch 6 times, most recently from 6258cef to 74d1d62 Compare April 13, 2026 15:09
@geo2a geo2a force-pushed the amesgen/predictable-snapshots branch 7 times, most recently from c6d09eb to b1e2b2b Compare April 16, 2026 08:47
@geo2a geo2a self-assigned this Apr 17, 2026
@geo2a geo2a moved this to 🏗 In progress in Consensus Team Backlog Apr 17, 2026
@geo2a geo2a force-pushed the fraser-iohk/snapshot-config-sanity-checks branch from 671f2d9 to b2395be Compare April 17, 2026 08:14
@geo2a geo2a force-pushed the amesgen/predictable-snapshots branch 8 times, most recently from 2f522ff to 3c557b3 Compare April 22, 2026 07:04
@geo2a geo2a force-pushed the amesgen/predictable-snapshots branch from 3c557b3 to f896763 Compare April 22, 2026 11:41
Base automatically changed from amesgen/predictable-snapshots to main April 22, 2026 12:48
@geo2a geo2a force-pushed the fraser-iohk/snapshot-config-sanity-checks branch 3 times, most recently from 0623697 to 1da8b89 Compare April 22, 2026 14:20
@geo2a geo2a force-pushed the fraser-iohk/snapshot-config-sanity-checks branch from 1da8b89 to b0281fb Compare April 23, 2026 14:36
@geo2a geo2a enabled auto-merge April 23, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

3 participants