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
babe: account for skipped epochs when handling equivocations #13335
Merged
paritytech-processbot
merged 3 commits into
master
from
andre/babe-equivocation-handling-skipped-epochs
Feb 17, 2023
Merged
babe: account for skipped epochs when handling equivocations #13335
paritytech-processbot
merged 3 commits into
master
from
andre/babe-equivocation-handling-skipped-epochs
Feb 17, 2023
Conversation
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
andresilva
added
B0-silent
Changes should not be mentioned in any release notes
D5-nicetohaveaudit ⚠️
PR contains trivial changes to logic that should be properly reviewed.
C1-low
labels
Feb 7, 2023
andresilva
added
the
C1-low
PR touches the given topic and has a low impact on builders.
label
Feb 7, 2023
melekes
reviewed
Feb 8, 2023
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.
lgtm
davxy
approved these changes
Feb 8, 2023
bkchr
approved these changes
Feb 9, 2023
bot merge |
paritytech-processbot
bot
deleted the
andre/babe-equivocation-handling-skipped-epochs
branch
February 17, 2023 11:46
rossbulat
pushed a commit
that referenced
this pull request
Feb 19, 2023
* babe: account for skipped epochs when handling equivocations * typos * babe: enforce epoch index >= session index
ltfschoen
pushed a commit
to ltfschoen/substrate
that referenced
this pull request
Feb 22, 2023
…ech#13335) * babe: account for skipped epochs when handling equivocations * typos * babe: enforce epoch index >= session index
ark0f
pushed a commit
to gear-tech/substrate
that referenced
this pull request
Feb 27, 2023
…ech#13335) * babe: account for skipped epochs when handling equivocations * typos * babe: enforce epoch index >= session index
Ank4n
pushed a commit
that referenced
this pull request
Feb 28, 2023
* babe: account for skipped epochs when handling equivocations * typos * babe: enforce epoch index >= session index
ukint-vs
pushed a commit
to gear-tech/substrate
that referenced
this pull request
Apr 10, 2023
…ech#13335) * babe: account for skipped epochs when handling equivocations * typos * babe: enforce epoch index >= session index
15 tasks
nathanwhit
pushed a commit
to nathanwhit/substrate
that referenced
this pull request
Jul 19, 2023
…ech#13335) * babe: account for skipped epochs when handling equivocations * typos * babe: enforce epoch index >= session index
Closed
11 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A0-please_review
Pull request needs code review.
B0-silent
Changes should not be mentioned in any release notes
C1-low
PR touches the given topic and has a low impact on builders.
D5-nicetohaveaudit ⚠️
PR contains trivial changes to logic that should be properly reviewed.
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.
When validating an equivocation proof we need to validate a key ownership proof for the validator that committed the offence at a given epoch. The key ownership proof exists in the context of a given session, therefore we must also validate the mapping between an epoch and a session. Normally these are synced (i.e.
epoch index == session index
), but if epochs are skipped this invariant is broken. This PR adds tracking of skipped epochs so that we can properly validate equivocation proofs after epochs are skipped.