Skip to content

Update ouroboros-consensus, cardano-ledger dependencies for node 11.2 - #1328

Merged
Jimbo4350 merged 8 commits into
masterfrom
koslambrou/prepare-11.2
Oct 6, 2026
Merged

Jimbo4350 merged 8 commits into
masterfrom
koslambrou/prepare-11.2

Conversation

@koslambrou

@koslambrou koslambrou commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor
  • Update hackage index-state and flake.lock (hackageNix) to 2026-09-02
  • Bump version to 11.6.0.0; configure SRPs and update bounds for 11.2 node integration
  • Fix build compatibility for new cardano-ledger apackages: ByteArrayAccess, XPrv conversion, new ledger fields
  • Re-export DijkstraTxCert from Cardano.Api.Ledger
  • Add Dijkstra era protocol parameter update support
  • Fix SerialisedPoolState to carry an era type parameter; unwrap Serialised in QueryPoolState
  • Update to era-parameterized PoolCert/StakePoolParams in cardano-rpc certificate types
  • Update History.Bound and EraParams to new Peras API (PerasRoundNo, NoPerasEnabled)
  • Adapt cardano-rpc grapesy integration: memory -> ram, ExactException handler signature

@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch from 6f93e4a to 4a07264 Compare September 3, 2026 17:50
@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch 3 times, most recently from 449b549 to 69b235c Compare September 10, 2026 19:57
@koslambrou koslambrou changed the title Update ouroboros-consensus, cardano-ledger dependencies Update ouroboros-consensus, cardano-ledger dependencies for node 11.2 Sep 10, 2026
@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch 4 times, most recently from 43c1b9a to a8d64c5 Compare September 11, 2026 00:24
@koslambrou

Copy link
Copy Markdown
Contributor Author

Because of the migration from memory package to ram, CI for cardano-wasm now fails with:

Failed to build ram-0.22.1.
Build log (
/home/runner/.ghc-wasm/.cabal/logs/ghc-9.10.3.20260214/ram-0.22.1-b32f495b3b5cc815ebdc5b5e41ca3727b875329af3a21f04b07086b239e92f83.log
):
Configuring library for ram-0.22.1...
Preprocessing library for ram-0.22.1...
In file included from Posix.hsc:20:
/nix/store/lj6dgm9jmj8n4spcggz8qkvym938q1r0-wasi-sdk/bin/../share/wasi-sysroot/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
    2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
      |  ^
Posix.hsc:123:32: error: use of undeclared identifier 'PROT_NONE'
  123 |         static int test_array[(PROT_NONE) > 0 ? 2 : 1];
      |                                ^~~~~~~~~

@Jimbo4350 What do you think should be done about this?

@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch 2 times, most recently from fb9b811 to 6095192 Compare September 11, 2026 14:23
@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch 7 times, most recently from f7ca4e9 to d612005 Compare October 3, 2026 01:55
@palas
palas force-pushed the koslambrou/prepare-11.2 branch from 80dc064 to 20f5a2d Compare October 6, 2026 12:49
@palas

palas commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

@palas
palas force-pushed the koslambrou/prepare-11.2 branch from 20f5a2d to d393878 Compare October 6, 2026 12:53
@palas palas closed this Oct 6, 2026
@palas palas reopened this Oct 6, 2026
@palas
palas marked this pull request as ready for review October 6, 2026 12:55
Copilot AI balanced review requested due to automatic review settings October 6, 2026 12:55
@palas
palas requested review from a team, Jimbo4350 and erikd as code owners October 6, 2026 12:55

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.

Copilot review overview

🟡 Changes recommended

Dijkstra conversions omit new ledger data, and breaking-change migration notes need correction.

Review effort: Balanced
Findings: 2 High severity · 2 Low severity

Open (4)
What changed in this PR

Prepares cardano-api and cardano-rpc for node 11.2 by updating dependencies and adapting ledger, consensus and RPC integrations.

Changes:

  • Refresh dependency bounds, package indexes, Nix inputs and WASM overrides.
  • Adapt Dijkstra parameters, era-indexed pool types and BLS key support.
  • Update compatibility tests, RPC exception handling and quickstart settings.
File Description
flake.lock Refresh package-source pins.
cardano-rpc/​test/​cardano-rpc-test/​Test/​Cardano/​Rpc/​EraSummary.hs Adapt fixtures to Peras history types.
cardano-rpc/​src/​Cardano/​Rpc/​Server/​Internal/​UtxoRpc/​Type/​Certificate.hs Accept era-indexed pool types.
cardano-rpc/​src/​Cardano/​Rpc/​Server.hs Adapt exception handling to grapesy.
cardano-rpc/​quickstart/​typescript/​shell.nix Normalize Nix formatting.
cardano-rpc/​quickstart/​shell.nix Normalize Nix formatting.
cardano-rpc/​quickstart/​rust/​shell.nix Normalize Nix formatting.
cardano-rpc/​quickstart/​python/​shell.nix Normalize Nix formatting.
cardano-rpc/​quickstart/​haskell/​cardano-rpc-quickstart.cabal Enable threaded executables.
cardano-rpc/​quickstart/​go/​shell.nix Normalize Nix formatting.
cardano-rpc/​cardano-rpc.cabal Replace memory with ram.
cardano-api/​test/​cardano-api-test/​Test/​Cardano/​Api/​TxBody.hs Initialize the new pool BLS field.
cardano-api/​test/​cardano-api-test/​Test/​Cardano/​Api/​Experimental/​Fee.hs Initialize the new pool BLS field.
cardano-api/​test/​cardano-api-test/​Test/​Cardano/​Api/​EpochLeadership.hs Update stake-distribution fixtures.
cardano-api/​test/​cardano-api-test/​Test/​Cardano/​Api/​Certificate.hs Add pool-parameter and certificate round trips.
cardano-api/​test/​cardano-api-test/​cardano-api-test.hs Register certificate tests.
cardano-api/​src/​Cardano/​Api/​Query/​Internal/​Type/​QueryInMode.hs Era-index pool-state results.
cardano-api/​src/​Cardano/​Api/​Query/​Internal/​Expr.hs Update the pool-state query signature.
cardano-api/​src/​Cardano/​Api/​LedgerState.hs Adapt genesis fields and snapshot access.
cardano-api/​src/​Cardano/​Api/​Ledger/​Internal/​Reexport.hs Re-export ledger BLS keys.
cardano-api/​src/​Cardano/​Api/​Key/​Internal/​Mnemonic.hs Convert between extended-key representations.
cardano-api/​src/​Cardano/​Api/​Key/​Internal/​Leios.hs Derive ledger BLS key/proof pairs.
cardano-api/​src/​Cardano/​Api/​Key.hs Export the BLS conversion helper.
cardano-api/​src/​Cardano/​Api/​Internal/​Orphans/​Serialisation.hs Remove the local withdrawals JSON instance.
cardano-api/​src/​Cardano/​Api/​Internal/​Orphans/​Misc.hs Combine new Dijkstra update fields.
cardano-api/​src/​Cardano/​Api/​Genesis/​Internal.hs Populate new Dijkstra genesis defaults.
cardano-api/​src/​Cardano/​Api/​Experimental/​Tx/​Internal/​Certificate/​Compatible.hs Era-index registration parameters.
cardano-api/​src/​Cardano/​Api/​Experimental/​Tx/​Internal/​Certificate.hs Era-index registration parameters.
cardano-api/​src/​Cardano/​Api/​Crypto/​Ed25519Bip32.hs Adapt byte-array access and crypto arguments.
cardano-api/​src/​Cardano/​Api/​Consensus/​Internal/​Protocol.hs Enable updated superclass constraints.
cardano-api/​src/​Cardano/​Api/​Compatible/​ProtocolParametersUpdate.hs Add Leios update fields and conversions.
cardano-api/​src/​Cardano/​Api/​Certificate/​Internal.hs Preserve BLS keys in pool conversions.
cardano-api/​src/​Cardano/​Api/​Block.hs Remove unnecessary conversion constraints.
cardano-api/​gen/​Test/​Gen/​Cardano/​Api/​ProtocolParameters.hs Generate added Leios fields.
cardano-api/​cardano-api.cabal Update dependencies and register tests.
cabal.project Refresh indexes and compatibility overrides.
.gitignore Ignore local direnv files.
.changes/​20260925_104337_cardano-api_ch1bo_leios_pparam_updates.yml Describe Leios parameter additions.
.changes/​20260910_200246_cardano-rpc_kolam_prepare_11_2.yml Describe RPC compatibility updates.
.changes/​20260910_200246_cardano-api_kolam_prepare_11_2.yml Describe API compatibility updates.
.changes/​20260813_120000_cardano-api_sebastian.nagel_stake_pool_bls_key.yml Document BLS support and migration.

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

, idMaxEndorserBlockReferencesSize = ppupdate ^. Ledger.ppuMaxEndorserBlockReferencesSizeL
, idMaxEndorserBlockTxsSize = ppupdate ^. Ledger.ppuMaxEndorserBlockTxsSizeL
, idMaxEndorserBlockExUnits = ppupdate ^. Ledger.ppuMaxEndorserBlockExUnitsL
, idMaxRefScriptSizePerEndorserBlock = ppupdate ^. Ledger.ppuMaxRefScriptSizePerEndorserBlockL
Comment on lines +250 to +251
stakePoolParamsToUtxoRpcPoolRegistration
:: L.StakePoolParams era -> Proto UtxoRpc.PoolRegistrationCert
Comment on lines +1 to +7
description: |
Compatibility updates for ouroboros-consensus 4.0, cardano-ledger, and plutus 1.68:
fix `SerialisedPoolState` to carry an era type parameter, add `individualPoolStakeBls`
field to `IndividualPoolStake`, update `History.Bound` to the new Peras API
(`PerasRoundNo`, `NoPerasEnabled`), and bump dependency bounds accordingly.
kind:
- release
Comment on lines +2 to +4
Add the Leios protocol parameters to pparams updates via
`createIntroducedInDijkstraPParams` by extending
`pparamsUpdateToIntroducedInDijkstraPParams`
@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch from d393878 to 2d580ef Compare October 6, 2026 13:16
koslambrou and others added 6 commits October 6, 2026 09:17
…consensus released on CHaP for next node release 11.2

* Fix build compatibility: ByteArrayAccess, XPrv conversion, new ledger fields
* Re-export DijkstraTxCert from Cardano.Api.Ledger
* Add Dijkstra era protocol parameter update support
* Fix SerialisedPoolState to carry an era type parameter; unwrap Serialised in QueryPoolState
* Update to era-parameterized PoolCert/StakePoolParams in cardano-rpc certificate types
* Add individualPoolStakeBls (SNothing) field to IndividualPoolStake in EpochLeadership test
* Update History.Bound and EraParams to new Peras API (PerasRoundNo, NoPerasEnabled)
* Adapt cardano-rpc grapesy integration: memory -> ram, ExactException handler signature
Adds Leios parameters to createIntroducedInDijkstraPParams and
pparamsUpdateToIntroducedInDijkstraPParams
@koslambrou
koslambrou force-pushed the koslambrou/prepare-11.2 branch from 2d580ef to af61493 Compare October 6, 2026 13:17

@Jimbo4350 Jimbo4350 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.

LGTM

@Jimbo4350
Jimbo4350 added this pull request to the merge queue Oct 6, 2026
Merged via the queue into master with commit c9943eb Oct 6, 2026
41 checks passed
@Jimbo4350
Jimbo4350 deleted the koslambrou/prepare-11.2 branch October 6, 2026 15:31
Jimbo4350 added a commit to IntersectMBO/cardano-node that referenced this pull request Oct 6, 2026
…ction commands

Point cardano-api (and cardano-rpc) at IntersectMBO/cardano-api@c9943eb3,
which is master after IntersectMBO/cardano-api#1328 (ouroboros-consensus
5.0, cardano-ledger-core 1.22) and IntersectMBO/cardano-api#1361 (the
Dijkstra sub-transaction API), replacing the input-output-hk fork pin.

Point cardano-cli at IntersectMBO/cardano-cli@c5062645, the head of
IntersectMBO/cardano-cli#1453 ("Add transaction sub-transaction commands
(Dijkstra)") on top of the 11.2 bounds update, so that the cardano-cli in
the build plan has the `dijkstra transaction sub-transaction` commands the
"Nested transaction swap" test needs. Previously the test could only run
with CARDANO_CLI pointing at a separate build of that PR, and a build
against the old ledger at that, since its `create-testnet-data` writes a
Dijkstra genesis without `minPoolMargin`.

With these pins both Dijkstra tests pass with no environment overrides.
The cardano-cli pin is temporary: replace it once #1453 is released.
Jimbo4350 added a commit to IntersectMBO/cardano-node that referenced this pull request Oct 9, 2026
…ction commands

Point cardano-api (and cardano-rpc) at IntersectMBO/cardano-api@c9943eb3,
which is master after IntersectMBO/cardano-api#1328 (ouroboros-consensus
5.0, cardano-ledger-core 1.22) and IntersectMBO/cardano-api#1361 (the
Dijkstra sub-transaction API), replacing the input-output-hk fork pin.

Point cardano-cli at IntersectMBO/cardano-cli@c5062645, the head of
IntersectMBO/cardano-cli#1453 ("Add transaction sub-transaction commands
(Dijkstra)") on top of the 11.2 bounds update, so that the cardano-cli in
the build plan has the `dijkstra transaction sub-transaction` commands the
"Nested transaction swap" test needs. Previously the test could only run
with CARDANO_CLI pointing at a separate build of that PR, and a build
against the old ledger at that, since its `create-testnet-data` writes a
Dijkstra genesis without `minPoolMargin`.

With these pins both Dijkstra tests pass with no environment overrides.
The cardano-cli pin is temporary: replace it once #1453 is released.
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.

5 participants