Skip to content

Support Dijkstra protocol-parameter updates - #1429

Merged
palas merged 2 commits into
masterfrom
support-dijkstra-pparam-updates
Aug 28, 2026
Merged

Support Dijkstra protocol-parameter updates#1429
palas merged 2 commits into
masterfrom
support-dijkstra-pparam-updates

Conversation

@palas

@palas palas commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Context

Creating a protocol-parameter update proposal in the Dijkstra era hit two error stubs: building the update itself, and attaching cost models to it.

This PR fills both, the update is built as DijkstraEraBasedProtocolParametersUpdate (from the released cardano-api), with option parsers for the four parameters the era introduces:

  • maximum reference-script size per block
  • maximum reference-script size per transaction
  • the reference-script cost stride
  • the reference-script cost multiplier
    And it also extends the cost-model attachment to the era.

Like the previous PR, these paths are not reachable from the command line yet: the Dijkstra governance commands arrive with the command-set PR later in this series, and these stubs must be gone before that lands.

How to trust this PR

It is command line parsing and simple conversions. It is worth paying attention to both the conversions and the documentation (the help message descriptions, names, and meta-vars).

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff
  • Changelog fragment added in .changes/

@palas palas self-assigned this Aug 27, 2026
Copilot AI lite review requested due to automatic review settings August 27, 2026 13:34
@palas
palas force-pushed the support-dijkstra-pparam-updates branch from 403754f to 67d8f14 Compare August 27, 2026 13:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Dijkstra-era support to governance action protocol-parameter update construction by removing Dijkstra stubs, wiring the Dijkstra-era update type, and introducing parsers for the new Dijkstra protocol parameters (plus cost model attachment support).

Changes:

  • Implement cost-model attachment for DijkstraEraBasedProtocolParametersUpdate.
  • Add CLI parsers for Dijkstra-introduced protocol parameters (ref-script size limits and fee parameters) and construct DijkstraEraBasedProtocolParametersUpdate.
  • Add a changelog fragment describing the Dijkstra protocol-parameter update support.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
cardano-cli/src/Cardano/CLI/EraBased/Governance/Actions/Run.hs Removes the Dijkstra stub by supporting cost-model attachment for Dijkstra-era PP updates.
cardano-cli/src/Cardano/CLI/EraBased/Governance/Actions/Option.hs Adds parsers and wiring to build a Dijkstra-era protocol-parameter update value.
.changes/20260827_131104_cardano-cli_palas_dijkstra_pparam_updates.yml Documents the change in the changelog (currently overstates CLI reachability).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cardano-cli/src/Cardano/CLI/EraBased/Governance/Actions/Option.hs Outdated
palas and others added 2 commits August 28, 2026 14:17
Creating a protocol-parameter update in the Dijkstra era hit an error
stub; build DijkstraEraBasedProtocolParametersUpdate instead, with
option parsers for the four parameters the era introduces (maximum
reference-script size per block and per transaction, reference-script
cost stride and multiplier), and extend cost-model attachment to the
era.

Co-Authored-By: Konstantinos Lambrou-Latreille <konstantinos.lambrou@iohk.io>
The reference-script cost multiplier reader rejected values with
"expected a positive rational", which is misleading for positive
values it also rejects: rationals whose numerator or denominator does
not fit in 64 bits; state the representable range in the error.
@palas
palas force-pushed the support-dijkstra-pparam-updates branch from a9e5533 to 9f54f16 Compare August 28, 2026 12:18
Comment thread cardano-cli/src/Cardano/CLI/EraBased/Governance/Actions/Option.hs
@palas
palas added this pull request to the merge queue Aug 28, 2026
Base automatically changed from support-dijkstra-simple-scripts to master August 28, 2026 18:04
Merged via the queue into master with commit 386c470 Aug 28, 2026
42 of 50 checks passed
@palas
palas deleted the support-dijkstra-pparam-updates branch August 28, 2026 19:27
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.

4 participants