This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
BEEFY: implement equivocations detection, reporting and slashing #13121
Merged
paritytech-processbot
merged 47 commits into
paritytech:master
from
acatangiu:beefy-equivocations
Feb 17, 2023
Merged
Changes from 37 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
7d74264
client/beefy: simplify self_vote logic
acatangiu c366330
client/beefy: migrate to new state version
acatangiu a9f067e
client/beefy: detect equivocated votes
acatangiu 4becc37
fix typos
acatangiu 6db1632
sp-beefy: add equivocation primitives
acatangiu e8f50ac
client/beefy: refactor vote processing
acatangiu fc35fd5
fix version migration for new rounds struct
acatangiu 800c1d9
client/beefy: track equivocations and create proofs
acatangiu bbc786a
client/beefy: adjust tests for new voting logic
acatangiu d6f6c18
sp-beefy: fix commitment ordering and equality
acatangiu 4958928
client/beefy: simplify handle_vote() a bit
acatangiu acfcb1f
client/beefy: add simple equivocation test
acatangiu 8c0d67b
client/beefy: submit equivocation proof - WIP
acatangiu 7114074
frame/beefy: add equivocation report runtime api - part 1
acatangiu 3219c2f
frame/beefy: report equivocation logic - part 2
acatangiu 9278bf0
frame/beefy: add pluggable Equivocation handler - part 3
acatangiu db11585
frame/beefy: impl ValidateUnsigned for equivocations reporting
acatangiu 57d6897
client/beefy: submit report equivocation unsigned extrinsic
acatangiu 8a344cc
primitives/beefy: fix tests
acatangiu f6aa2e0
frame/beefy: add default weights
acatangiu 5cf2560
frame/beefy: fix tests
acatangiu 2c2c5d6
client/beefy: fix tests
acatangiu 93ba33d
Merge branch 'master' of github.com:paritytech/substrate into beefy-e…
acatangiu 9349350
frame/beefy-mmr: fix tests
acatangiu b5e2c21
frame/beefy: cross-check session index with equivocation report
acatangiu 1eca5b2
sp-beefy: make test Keyring useable in pallet
acatangiu fccf5c7
frame/beefy: add basic equivocation test
acatangiu 9d68c1d
frame/beefy: test verify equivocation results in slashing
acatangiu a08b319
frame/beefy: test report_equivocation_old_set
acatangiu 64114b4
frame/beefy: add more equivocation tests
acatangiu 5634805
sp-beefy: fix docs
acatangiu d8898a5
beefy: simplify equivocations and fix tests
acatangiu 7388c55
client/beefy: address review comments
acatangiu 1f52f4c
Merge remote-tracking branch 'origin/master' into beefy-equivocations
6ff53e5
frame/beefy: add ValidateUnsigned to test/mock runtime
acatangiu 8f29cdb
Merge branch 'master' of github.com:paritytech/substrate into beefy-e…
acatangiu ab11674
client/beefy: fixes after merge master
acatangiu cb2bb8b
Merge branch 'master' of github.com:paritytech/substrate into beefy-e…
acatangiu 711832b
fix missed merge damage
acatangiu 7d62d22
Merge branch 'master' of github.com:paritytech/substrate into beefy-e…
acatangiu ab975f4
client/beefy: add test for reporting equivocations
acatangiu f6bfc81
sp-beefy: move test utils to their own file
acatangiu 02e166e
client/beefy: add negative test for equivocation reports
acatangiu 42ef521
sp-beefy: move back MmrRootProvider - used in polkadot-service
acatangiu 282d18f
impl review suggestions
acatangiu 900547f
Merge branch 'master' of github.com:paritytech/substrate into beefy-e…
acatangiu f070f63
client/beefy: add equivocation metrics
acatangiu 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
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.
Since old aux-schema version has never been run in production I propose to actually drop this conversion and support for old version.