Skip to content
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

VC slashing part 5 - vc slashing sse #7917

Merged
merged 8 commits into from
Jan 31, 2024

Conversation

mehdi-aouadi
Copy link
Contributor

@mehdi-aouadi mehdi-aouadi commented Jan 24, 2024

PR Description

Validator Slashing Part 5:
Handle attester_slashing and proposer_slashing events and subscribe to them only when the Xshut-down-when-validator-slashed-enabled option is set to true

Fixed Issue(s)

#7707

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@mehdi-aouadi mehdi-aouadi changed the title 7707 5 vc slashing sse VC slashing part 5 - vc slashing sse Jan 24, 2024
@mehdi-aouadi mehdi-aouadi self-assigned this Jan 24, 2024
@mehdi-aouadi mehdi-aouadi force-pushed the 7707-5-vc-slashing-sse branch from 9806cd6 to 40dc60b Compare January 24, 2024 11:42
@mehdi-aouadi mehdi-aouadi force-pushed the 7707-5-vc-slashing-sse branch from 40dc60b to 53e1508 Compare January 24, 2024 12:07
@mehdi-aouadi mehdi-aouadi force-pushed the 7707-5-vc-slashing-sse branch from 53e1508 to 80dda7a Compare January 24, 2024 16:20
Comment on lines +139 to +144
if (shutdownWhenValidatorSlashedEnabled) {
eventTypes.add(EventType.attester_slashing);
eventTypes.add(EventType.proposer_slashing);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally test case here to so we don't regress...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@mehdi-aouadi mehdi-aouadi force-pushed the 7707-5-vc-slashing-sse branch from 476f850 to 9fb58ea Compare January 30, 2024 14:11
@mehdi-aouadi mehdi-aouadi requested a review from rolfyone January 30, 2024 14:12
Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit, looks good!

@mehdi-aouadi mehdi-aouadi enabled auto-merge (squash) January 31, 2024 08:46
@mehdi-aouadi mehdi-aouadi merged commit 54e85e3 into Consensys:master Jan 31, 2024
14 of 15 checks passed
@mehdi-aouadi mehdi-aouadi deleted the 7707-5-vc-slashing-sse branch February 17, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants