Repository navigation
Conversation
…nd cardano-api Pins the unreleased ledger queries (cardano-ledger#6162), consensus's GetStakePoolState (#2412) and GetLeiosCommittee (#2419) on top of consensus main, and the cardano-api plumbing for both. Drop once all are on CHaP.
query pool-state reconstructed each pool's state from queryPoolState with the current epoch as a placeholder for the BLS key's registration epoch (cardano-ledger#6147). The ledger's queryStakePoolState reports the real one, so pool-state uses that. The new query leios-committee shows the Leios committees from queryLeiosCommittee.
ch1bo
requested review from
Jimbo4350,
carbolymer,
disassembler,
kevinhammond and
palas
as code owners
October 17, 2026 12:20
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Two unavailable dependency revisions block fresh builds, and the pool-state changes lack regression coverage.
3 open issues
What changed in this PR
Adds Leios committee queries and replaces reconstructed pool state with ledger-provided values, including the actual BLS key registration epoch.
Changes:
- Adds
query leios-committeewith JSON/YAML output. - Switches
pool-stateto the ledger’s stake pool state query. - Pins supporting dependencies and updates compatibility code and help goldens.
| File | Description |
|---|---|
| cardano-cli/test/cardano-cli-test/Test/Cli/Transaction/SubTransaction.hs | Updates ledger lens references. |
| cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query.cli | Lists the new command. |
| cardano-cli/test/cardano-cli-golden/files/golden/help/latest_query_leios-committee.cli | Adds latest-era command help. |
| cardano-cli/test/cardano-cli-golden/files/golden/help/dijkstra_query.cli | Lists the new command. |
| cardano-cli/test/cardano-cli-golden/files/golden/help/dijkstra_query_leios-committee.cli | Adds Dijkstra command help. |
| cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query.cli | Lists the new command. |
| cardano-cli/test/cardano-cli-golden/files/golden/help/conway_query_leios-committee.cli | Adds Conway command help. |
| cardano-cli/test/cardano-cli-golden/files/golden/help.cli | Updates combined help output. |
| cardano-cli/src/Cardano/CLI/Type/Common.hs | Removes pool-state reconstruction. |
| cardano-cli/src/Cardano/CLI/Orphan.hs | Adapts epoch-state serialization. |
| cardano-cli/src/Cardano/CLI/EraBased/Query/Run.hs | Implements both query changes. |
| cardano-cli/src/Cardano/CLI/EraBased/Query/Option.hs | Adds committee command parsing. |
| cardano-cli/src/Cardano/CLI/EraBased/Query/Command.hs | Wires committee command metadata. |
| cabal.project | Pins supporting dependencies. |
| .changes/20261017_090000_cardano-cli_ch1bo_stake_pool_state_leios_committee_queries.yml | Documents the feature and breaking change. |
Review effort: Balanced
| source-repository-package | ||
| type: git | ||
| location: https://github.com/IntersectMBO/ouroboros-consensus | ||
| tag: 0d02985b030317be91c5422020d1ed3565fe3ee3 |
| source-repository-package | ||
| type: git | ||
| location: https://github.com/IntersectMBO/cardano-api | ||
| tag: 10ed945ae1cc1a9e761319eed64e84335dc08458 |
Comment on lines
+672
to
+673
| result <- easyRunQuery (queryStakePoolState (convert era) poolFilter False) | ||
| hoist liftIO $ writePoolState outputFormat mOutFile result |
4 tasks
4 tasks
This branch has not been deployed
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.


Context
The
query pool-statecommand reconstructed each pool's state fromqueryPoolStatewith the current epoch as a placeholder for the BLS key's registration epoch (cardano-ledger#6147). The ledger'squeryStakePoolStatereports the real one, sopool-stateuses that.The new
query leios-committeeshows the Leios committees fromqueryLeiosCommittee.NOTE: Drop/amend the TEMP commit as you see fit for integrating this.
See input-output-hk/ouroboros-leios#1093 for more context
How to trust this PR
Variant of these commits integrated into https://github.com/input-output-hk/ouroboros-leios/releases/tag/rc-2026w42, run a local devnet with this node + cli by following instructions https://github.com/input-output-hk/ouroboros-leios/blob/main/demo/proto-devnet.
The
cardano-clibuild from this may just work against that version of node too (but not entirely sure because of N2C versioning)Checklist
.changes/