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

Prevent votes for non existent entities #4452

Merged
merged 5 commits into from
Jul 1, 2024

Conversation

lehins
Copy link
Collaborator

@lehins lehins commented Jun 28, 2024

Description

This PR implements protection against votes by unknown entities.

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

@lehins lehins force-pushed the lehins/prevent-votes-for-non-existent-entities branch 2 times, most recently from 817ea91 to 8a48f58 Compare June 28, 2024 23:10
@lehins lehins marked this pull request as ready for review June 28, 2024 23:54
@lehins lehins force-pushed the lehins/prevent-votes-for-non-existent-entities branch from 8a48f58 to aa9d070 Compare June 28, 2024 23:54
@lehins lehins requested review from aniketd and teodanciu June 28, 2024 23:55
@lehins lehins force-pushed the lehins/prevent-votes-for-non-existent-entities branch from aa9d070 to 5c2e747 Compare June 29, 2024 17:06
Copy link
Contributor

@teodanciu teodanciu left a comment

Choose a reason for hiding this comment

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

Looks good to me

@lehins lehins force-pushed the lehins/prevent-votes-for-non-existent-entities branch from 5c2e747 to 262414a Compare June 30, 2024 20:49
@teodanciu teodanciu force-pushed the lehins/prevent-votes-for-non-existent-entities branch from 262414a to 59bd48f Compare July 1, 2024 11:30
This check will prevent unknown voters from placing bogus votes on chain

* Add an argument to `registerCommitteeHotKeys`

* Change the return type of `resignCommitteeColdKey`
@lehins lehins force-pushed the lehins/prevent-votes-for-non-existent-entities branch from 59bd48f to 715f24d Compare July 1, 2024 18:55
@lehins lehins enabled auto-merge July 1, 2024 18:56
@lehins lehins merged commit fa01c45 into master Jul 1, 2024
123 of 125 checks passed
@lehins lehins deleted the lehins/prevent-votes-for-non-existent-entities branch July 1, 2024 21:33
@lehins lehins mentioned this pull request Jul 2, 2024
9 tasks
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