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

BEEFY: Define basic fisherman #4328

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Conversation

serban300
Copy link
Contributor

@serban300 serban300 commented Apr 29, 2024

Related to #1903

For #1903 we will need to add a Fisherman struct. This PR:

  • defines a basic version of Fisherman and moves into it the logic that we have now for reporting double voting equivocations
  • splits the logic for generating the key ownership proofs into a more generic separate method
  • renames EquivocationProof to DoubleVotingProof since later we will introduce a new type of equivocation

The PR doesn't contain any functional changes

@serban300 serban300 added R0-silent Changes should not be mentioned in any release notes T15-bridges This PR/Issue is related to bridges. labels Apr 29, 2024
@serban300 serban300 self-assigned this Apr 29, 2024
Define basic fisherman structure containing 2 methods:

- report_equivocation() was just moved from BeefyWorker.

- prove_offenders() is an adaptation of the previous logic for
generating key ownership proofs that was part of
BeefyWorker::report_equivocation() in oreder to make it more generic.
It is used by report_equivocation() now and it will be also needed for
reporting signed commitment equivocations in the future.
@serban300 serban300 changed the title Beefy: Define basic fisherman BEEFY: Define basic fisherman Apr 29, 2024
Copy link
Contributor

@Lederstrumpf Lederstrumpf left a comment

Choose a reason for hiding this comment

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

lgtm, fwiw

@acatangiu acatangiu added this pull request to the merge queue Apr 30, 2024
Merged via the queue into paritytech:master with commit b8593cc Apr 30, 2024
141 of 142 checks passed
@ggwpez
Copy link
Member

ggwpez commented Jun 11, 2024

This is not R0-silent. It breaks compilation by renaming EquivocationProof and must appear in the CHANGELOG for 1.12 by declaring a major version bump of beefy-primitives.

@ggwpez ggwpez removed the R0-silent Changes should not be mentioned in any release notes label Jun 11, 2024
@serban300
Copy link
Contributor Author

This is not R0-silent. It breaks compilation by renaming EquivocationProof and must appear in the CHANGELOG for 1.12 by declaring a major version bump of beefy-primitives.

Solrry, I didn't know that renamings need to be mentioned in the CHANGELOR/PR doc. I see that 1.12 is already released. So is it worth doing the version bump no, and adding a PR, or is it just something to know in the future ?

TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 2, 2024
Related to paritytech#1903

For paritytech#1903 we will need to add a Fisherman struct. This PR:
- defines a basic version of `Fisherman` and moves into it the logic
that we have now for reporting double voting equivocations
- splits the logic for generating the key ownership proofs into a more
generic separate method
- renames `EquivocationProof` to `DoubleVotingProof` since later we will
introduce a new type of equivocation

The PR doesn't contain any functional changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T15-bridges This PR/Issue is related to bridges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants