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

A validator may be included both in a slashing and a voluntary exit in the same block, which causes the block invalid #2084

Closed
lucianyao opened this issue Sep 29, 2020 · 1 comment

Comments

@lucianyao
Copy link

In a case that a validator is to exit, while it triggers a slashing, then
In block proposal:
According to current spec of honest validators, the block proposer may include the same validator in both slashings and voluntary exits into the same block(since the exits satisfies the verification conditions found in exits processing based on current beacon state).

But in state transition:
The block is not to be accepted by other validators, since, after process_proposer_slashing and process_attester_slashing, the exit_epoch will be set, while process_voluntary_exit will reject the voluntary exits whose exit epochs are set before.

I checked lighthouse, prysm and nimbus, according to my limited investigations, I haven't seen these versions are trying to avoid the conflict.

@JustinDrake
Copy link
Contributor

Great point!

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 a pull request may close this issue.

3 participants