Skip to content

Conversation

@OlufemiAdeOlusile
Copy link
Collaborator

Get future pparams


def get_future_pparams(self) -> dict[str, tp.Any]:
"""Get the future protocol parameters that will apply at the next epoch."""
out: dict[str, tp.Any] = json.loads(self.query_cli(["future-pparams"]))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be

out: dict[str, tp.Any] = json.loads(self.query_cli(["future-pparams"])) or {}

to ensure we always return dict, as we stated in function definition. The command returns null when there are no future pparams.

@mkoura mkoura merged commit 3be650f into master Oct 30, 2025
3 checks passed
@mkoura mkoura deleted the get-future-pparams branch October 30, 2025 12:23
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.

3 participants