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.7k
babe: report equivocations #6362
Merged
Merged
Changes from 32 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
527e971
slots: create primitives crate for consensus slots
andresilva 4ffdc8a
offences: add method to check if an offence is unknown
andresilva 94084aa
babe: initial equivocation reporting implementation
andresilva 8759f02
babe: organize imports
andresilva 54ceef3
babe: working equivocation reporting
andresilva af2e58b
babe: add slot number to equivocation proof
andresilva 4b573fb
session: move duplicate traits to session primitives
andresilva f20c07f
babe: move equivocation stuff to its own file
andresilva 1215653
offences: fix test
andresilva 03f5b71
session: don't have primitives depend on frame_support
andresilva 17ea089
babe: use opaque type for key owner proof
andresilva d243323
babe: cleanup client equivocation reporting
andresilva 237689e
babe: cleanup equivocation code in pallet
andresilva 760996a
babe: allow sending signed equivocation reports
andresilva 5464a0a
node: fix compilation
andresilva 585f80b
fix test compilation
andresilva 26bfb4f
Merge branch 'master' into andre/report-babe-equivocations
andresilva 0f22701
babe: return bool on check_equivocation_proof
andresilva 81ce38f
Merge branch 'master' into andre/report-babe-equivocations
andresilva 95b29be
Merge branch 'master' into andre/report-babe-equivocations
andresilva e8467c4
babe: add test for equivocation reporting
andresilva 187008a
babe: add more tests
andresilva ae68282
babe: add test for validate unsigned
andresilva db83144
Merge branch 'master' into andre/report-babe-equivocations
andresilva 17a0141
babe: take slot number in generate_key_ownership_proof API
andresilva 27dc893
Merge branch 'master' into andre/report-babe-equivocations
andresilva a1db90c
babe: add benchmark for equivocation proof checking
andresilva f88e5e6
session: add benchmark for membership proof checking
andresilva 15b1000
offences: fix babe benchmark
andresilva 8a5e0bc
babe: add weights based on benchmark results
andresilva d53a277
babe: adjust weights after benchmarking on reference hardware
andresilva 4b1b2ce
Merge branch 'master' into andre/report-babe-equivocations
andresilva dbc9ee2
babe: reorder checks in check_and_report_equivocation
andresilva File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
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.
@andresilva Do light clients need a select chain instance? Is this something we could turn into an
Option
?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 think this can be turned into an option. This was added to fetch some data required for submitting equivocation reports, which the light clients won't do for now as only block authors submit them.