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.
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 support for slashing validators signing forking commitments (without ancestry proofs) #1329
BEEFY: add support for slashing validators signing forking commitments (without ancestry proofs) #1329
Changes from 64 commits
d8964df
a2678a0
17398d8
df31624
938cde1
fb08553
39799b2
4aa602a
e0e13d9
165d7fc
c7df83b
754ae80
6ed4e99
1e41551
de2ae90
273f34b
eb1e549
3369783
7abbddc
8acea22
103fc53
1509a26
a62cc7f
5445977
d35a97c
4e3e1cc
f27a876
f641759
5c4104c
a0d8b87
9126904
02da07e
a3b4d3f
d44e3c8
c27579c
5516837
60a71c7
ec99b1a
ea7dd35
3185776
59c1c2a
ab3eb02
844ed67
6ebebed
efe4b2a
d0dba3b
b438866
bd856ac
9e1e7b1
f5b1ec5
7504b96
036fa2f
53e8ae0
8a14649
4074a27
e5537dd
c815af6
35330bb
bb2e791
936406b
16c12eb
8b48fec
7be7ba9
0cd4a75
e1953eb
26fc473
d7f553f
d2bf211
11a16cc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Could we maybe use
sc_consensus_beefy::expect_validator_set
, which falls back to headers traversal if state is already discarded for theheader
? I expect that when this method is called (ifRejectPast
is returned fromconsider_*
), then there's a big chance that we may hitStateDiscarded
hereThere 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.
+1
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.
See #2689 (comment) - maybe this suggestion is no longer relevant
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.
Suggestion is still relevant, just that we need to use some non-blocking version of the function
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.
good catch - I've add a non-blocking version of the function in 816b726. Note this will simply error if a header's parent header cannot be found.