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

add additional checks for equivocation governance proposals #730

Merged
merged 5 commits into from
Feb 10, 2023

Conversation

MSalopek
Copy link
Contributor

@MSalopek MSalopek commented Feb 10, 2023

Description

This PR adds additional checks regarding Equivocation governance proposals.

Any time a validator double signs on any of the consumer chains, the provider will keep a record that signifies that an equivocation slash packet was received from a consumer chain.

Any proposals made to slash validators for which the provider does not have a double signing record will be rejected.

Linked issues

Closes: #729

Type of change

If you've checked more than one of the first three boxes, consider splitting this PR into multiple PRs!

  • Feature: Changes and/or adds code behavior, irrelevant to bug fixes
  • Fix: Changes and/or adds code behavior, specifically to fix a bug
  • Refactor: Changes existing code style, naming, structure, etc.
  • Testing: Adds testing
  • Docs: Adds documentation

New behavior tests

Throttling e2e tests, unittests and integration tests were written to accomodate these changes.

@MSalopek MSalopek marked this pull request as ready for review February 10, 2023 18:53
@MSalopek MSalopek changed the title 729 packets equivocation prop add additional checks for equivocation governance proposals Feb 10, 2023
Copy link
Contributor

@shaspitz shaspitz left a comment

Choose a reason for hiding this comment

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

Smaller comments on tests but overall LGTM!

Copy link
Contributor

@jtremback jtremback left a comment

Choose a reason for hiding this comment

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

LGTM

@shaspitz shaspitz merged commit 2c5942d into main Feb 10, 2023
@shaspitz shaspitz deleted the 729-packets-equivocation-prop branch February 10, 2023 20:35
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.

Don't allow slash proposal without corresponding slash packet
3 participants