-
Notifications
You must be signed in to change notification settings - Fork 699
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] Add runtime support for reporting fork voting #4522
Merged
serban300
merged 17 commits into
paritytech:master
from
serban300:beefy-equivocation-runtime
Jul 3, 2024
Merged
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e2b72b9
Add Beefy pallet hook for checking ancestry
serban300 8a7ac61
Renamings
serban300 1ff72ef
Add support for reporting fork voting
serban300 4b69c20
Address code review comments
serban300 f709cef
Validate ancestry proofs generated at older blocks
serban300 5f4ab3d
Merge remote-tracking branch 'upstream/master' into beefy-equivocatio…
serban300 4f85eaa
Add future block voting offence
serban300 d608795
Merge remote-tracking branch 'upstream/master' into beefy-equivocatio…
serban300 ede4a01
Merge branch 'master' into beefy-equivocation-runtime
serban300 2450e77
prdoc
serban300 7445ec4
fix prdoc
serban300 89a78d5
Update prdoc
serban300 80b4c6f
check_equivocation_proof -> check_double_voting_proof
serban300 95c82ff
Update prdoc
serban300 e8822ca
Fix semver
serban300 fb12a8a
Leftover semver fix
serban300 c1f97b5
upate prdoc bumps
serban300 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Added runtime support for reporting BEEFY fork voting | ||
|
||
doc: | ||
- audience: | ||
- Runtime Dev | ||
- Runtime User | ||
description: | | ||
This PR adds the `report_fork_voting`, `report_future_voting` extrinsics to `pallet-beefy` | ||
serban300 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
and renames the `report_equivocation` extrinsic to `report_double_voting`. | ||
`report_fork_voting` can't be called yet, since it uses `Weight::MAX` weight. We will | ||
add benchmarks for it and set the proper weight in a future PR. | ||
- audience: Node Dev | ||
description: | | ||
This PR renames the `submit_report_equivocation_unsigned_extrinsic` in `BeefyApi` to | ||
`submit_report_double_voting_unsigned_extrinsic`and bumps the `BeefyApi` version from 3 to 4. | ||
|
||
crates: | ||
- name: pallet-beefy | ||
bump: major | ||
- name: pallet-beefy-mmr | ||
bump: major | ||
- name: pallet-mmr | ||
bump: major | ||
- name: sc-consensus-beefy | ||
bump: minor | ||
- name: kitchensink-runtime | ||
bump: major | ||
- name: rococo-runtime | ||
bump: major | ||
- name: westend-runtime | ||
bump: major |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this description relevant to runtime users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking it might be helpful for them to know of the new extrinsics.