Skip to content

feat: epoch length bounds checks#143

Merged
matthias-wright merged 1 commit intomainfrom
m/protocol-param-safety
Mar 18, 2026
Merged

feat: epoch length bounds checks#143
matthias-wright merged 1 commit intomainfrom
m/protocol-param-safety

Conversation

@matthias-wright
Copy link
Collaborator

@matthias-wright matthias-wright commented Mar 17, 2026

This adds bounds to the epoch length parameter. The epoch length can be updated via a protocol parameter execution request. If the epoch length is set too large by accident, we have to wait for a long time until we can change it again, since the protocol parameters are always updated at the end of an epoch.
The minimum bound is set to 10, and the maximum bound is set to 1_814_400. At 3 blocks per second, 1_814_400 will take one week.

@matthias-wright matthias-wright force-pushed the m/protocol-param-safety branch from 7eb2a07 to e255133 Compare March 18, 2026 17:49
@matthias-wright matthias-wright merged commit 20b3546 into main Mar 18, 2026
4 checks passed
@matthias-wright matthias-wright deleted the m/protocol-param-safety branch March 18, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant