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

Immediate Slashing Protection Data Storage #7789

Merged
merged 10 commits into from
Nov 12, 2020

Conversation

shayzluf
Copy link
Contributor

@shayzluf shayzluf commented Nov 12, 2020

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?
In the current validator protection flow protection data is being saved only at the end of the slot leaving an opportunity to lose protection data on power cuts etc.

This pr makes save operation on per public key basis and saves the data after a successful propose attestation operation.

Which issues(s) does this PR fix?

No open issue for it, we believe it resolves #7076

@shayzluf shayzluf self-assigned this Nov 12, 2020
@shayzluf shayzluf added the Ready For Review A pull request ready for code review label Nov 12, 2020
@shayzluf shayzluf added this to the Diamond milestone Nov 12, 2020
@rauljordan rauljordan changed the title Istant protection data storage Immediate Slashing Protection Data Storage Nov 12, 2020
@prylabs-bulldozer prylabs-bulldozer bot merged commit 18be4a4 into master Nov 12, 2020
@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #7789 (ca8e1e3) into master (e9136e9) will increase coverage by 0.00%.
The diff coverage is 63.15%.

@@           Coverage Diff           @@
##           master    #7789   +/-   ##
=======================================
  Coverage   62.18%   62.19%           
=======================================
  Files         429      429           
  Lines       30395    30412   +17     
=======================================
+ Hits        18902    18915   +13     
- Misses       8551     8554    +3     
- Partials     2942     2943    +1     

@delete-merged-branch delete-merged-branch bot deleted the imidiate_save_protection branch November 12, 2020 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validators Slashed With Local Protection
2 participants