Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Committee query improvements #4088

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Committee query improvements #4088

merged 3 commits into from
Feb 21, 2024

Conversation

teodanciu
Copy link
Contributor

Description

This was initially meant to be a test to verify the behavior reported in this issue: #4001
However I realized that we could improve the query by returning results independent of whether there exists a current committee, since it's possible that we have relevant information even when there is no currently elected committee (for example: information about the next epoch committee, or about pre-authorized members).
It's possible that returning better results helps with clarifying the behavior reported in the bug, for which I added a test in the last commit.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@teodanciu teodanciu force-pushed the td/cc-query-improvements branch 2 times, most recently from 8f292ff to 314430d Compare February 20, 2024 19:11
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Looks great. Thank you!

since it was needed only because we couldn't have era-specific queries
in consensus
and move optionality to the `csQuorum` field within
`CommitteeMembersState`, in order to return results from the query even
when there is no elected committee. In this way, we can query the
committee for the next epoch or registered hot keys, independenent of
the current state of the elected committee.
@teodanciu teodanciu force-pushed the td/cc-query-improvements branch from 314430d to 450108b Compare February 21, 2024 15:46
@teodanciu teodanciu enabled auto-merge February 21, 2024 15:46
@teodanciu teodanciu merged commit 8d4dba9 into master Feb 21, 2024
12 of 13 checks passed
@neilmayhew neilmayhew deleted the td/cc-query-improvements branch March 8, 2024 21:07
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.

2 participants