Skip to content

Print friendly stderr message when future-pparams returns null#1344

Open
Jimbo4350 wants to merge 1 commit intomasterfrom
jordan/friendly-future-pparams-null-message
Open

Print friendly stderr message when future-pparams returns null#1344
Jimbo4350 wants to merge 1 commit intomasterfrom
jordan/friendly-future-pparams-null-message

Conversation

@Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Mar 6, 2026

Changelog

- description: |
    Print friendly stderr message when query future-pparams returns null
  type:
    - feature

Context

When query future-pparams returns null (no pending protocol parameter changes), the CLI now prints a human-friendly message to stderr:

No protocol parameter changes will be enacted at the next epoch boundary.

stdout still outputs null for script compatibility, as discussed in the issue.

Closes #1061

Checklist

  • Commit sequence broadly makes sense and commits have useful messages

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
Copilot AI review requested due to automatic review settings March 6, 2026 13:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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-pparams returns Nothing (encoded as null), print an informational message to stderr.
  • Keep the existing stdout output unchanged (null) to avoid breaking scripts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Jimbo4350 Jimbo4350 enabled auto-merge March 6, 2026 17:42
Copy link
Contributor

@palas palas left a comment

Choose a reason for hiding this comment

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

@Jimbo4350 Jimbo4350 added this pull request to the merge queue Mar 8, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 9, 2026
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.

Improve "query future-pparams" to not show null but a friendlier message.

4 participants