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

Prevent Validator Exit Re-entance #2443

Merged
merged 1 commit into from
Apr 29, 2019
Merged

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Apr 29, 2019

Kudos to @shayzluf for pointing this out!

There's a bug on the old ExitValidator spec, where a validator can exit but re-exit again within entryExitEffectEpoch period. This prevents the bug by not letting validator exit again if the exit epoch is no longer set FarFutureEpoch so the validator can only get exited/slashed/ejected once

@codecov
Copy link

codecov bot commented Apr 29, 2019

Codecov Report

Merging #2443 into master will increase coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2443      +/-   ##
==========================================
+ Coverage   65.59%   65.65%   +0.05%     
==========================================
  Files         122      122              
  Lines        9571     9570       -1     
==========================================
+ Hits         6278     6283       +5     
+ Misses       2585     2580       -5     
+ Partials      708      707       -1

@terencechain terencechain merged commit 7a7b4e5 into master Apr 29, 2019
@terencechain terencechain deleted the prevent-exit-reentrance branch June 6, 2019 14: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