Leios PParams - #1317
Open
ch1bo wants to merge 8 commits into
Open
Conversation
CIP-164 makes nine parameters of the Leios protocol governance-tunable, and the cardano-ledger proposal #5965 maps them onto the Dijkstra PParams. Add them as fields: three periods of a Leios round, four bounds on an endorser block, and the committee stake coverage and quorum stake threshold. The ranking-block max size of CIP-164's Table 3 is the existing maxBlockSize, so no field is added for it. Wire them through the mechanical companions -- the PParamsUpdate fields, applyPParamsUpdate, and the network- and security-group predicates, the two groups #5965 assigns them. AI-assisted development: Claude Opus 5 (Anthropic)
CIP-164's Table 3 makes τ < σ_c normative: the quorum stake threshold must lie strictly below the committee's stake coverage, so that a fully keyed committee can arithmetically reach a quorum. Impose it in paramsWellFormed, alongside positivity of the three Leios periods and the three Leios size bounds, which positivePParams and paramsUpdateWellFormed now list. The constraint relates two fields, so a PParamsUpdate cannot be checked for it in isolation; ppdWellFormed imposes it on the parameters an update yields. AI-assisted development: Claude Opus 5 (Anthropic)
CIP-164 now governs the voting committee by size: leiosCommitteeSize replaces leiosCommitteeStakeCoverage, and the quorum constraint τ < σ(N_c) becomes a property of the stake distribution rather than of the parameters, so paramsWellFormed can no longer impose it.
Co-authored-by: William DeMeo <williamdemeo@gmail.com>
The Use-Milliseconds amendment typed the update record's periods as Maybe Milliseconds without restoring the alias it had removed, and left the PParams record's periods at plain naturals. Restore the alias in Ledger.Prelude.Base and type the record's three periods with it.
ch1bo
marked this pull request as ready for review
September 9, 2026 17:14
ch1bo
added this pull request to stack #1318
September 9, 2026 17:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-opening of #1299, this time from the main repository.
Meanwhile, the pparams got merged into the ledger implementation already: IntersectMBO/cardano-ledger#6002