Print friendly stderr message when future-pparams returns null#1344
Open
Print friendly stderr message when future-pparams returns null#1344
Conversation
When there are no protocol parameter changes to be enacted at the next epoch boundary, print a human-friendly message to stderr while keeping the null output on stdout for script compatibility. Closes #1061
There was a problem hiding this comment.
Pull request overview
This PR improves the UX of conway query future-pparams when there are no pending protocol parameter changes by emitting a human-friendly informational message to stderr while preserving null on stdout for scripting compatibility.
Changes:
- When
query future-pparamsreturnsNothing(encoded asnull), print an informational message tostderr. - Keep the existing
stdoutoutput unchanged (null) to avoid breaking scripts.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
carbolymer
approved these changes
Mar 6, 2026
palas
approved these changes
Mar 6, 2026
Contributor
palas
left a comment
There was a problem hiding this comment.
Indeed, a Nothing seems to represent the future pparams will not change: https://cardano-ledger.cardano.intersectmbo.org/cardano-ledger-shelley/Cardano-Ledger-Shelley-Governance.html#t:FuturePParams
Also here: https://cardano-ledger.cardano.intersectmbo.org/cardano-ledger-api/src/Cardano.Ledger.Api.State.Query.html#queryFuturePParams
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.
Changelog
Context
When
query future-pparamsreturnsnull(no pending protocol parameter changes), the CLI now prints a human-friendly message tostderr:stdoutstill outputsnullfor script compatibility, as discussed in the issue.Closes #1061
Checklist