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

Implement attester protection into validator client #4598

Merged
merged 29 commits into from Jan 23, 2020

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Jan 20, 2020

This PR adds attester protection into the validator client to ensure a validator will not sign any possible slashable votes. This will protect from double, surrounded, and surrounding attestations, enabled by the feature flag --protect-attester.

@0xKiwi 0xKiwi changed the title [WIP] Implement attester protection into validator client Implement attester protection into validator client Jan 21, 2020
@codecov
Copy link

codecov bot commented Jan 21, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@fc551b3). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master   #4598   +/-   ##
========================================
  Coverage          ?   0.93%           
========================================
  Files             ?      48           
  Lines             ?    3423           
  Branches          ?       0           
========================================
  Hits              ?      32           
  Misses            ?    3389           
  Partials          ?       2

@0xKiwi 0xKiwi requested review from terencechain, prestonvanloon and rauljordan and removed request for terencechain January 22, 2020 04:29
Copy link
Contributor

@rauljordan rauljordan left a comment

Choose a reason for hiding this comment

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

Beautifully done, approved

@rauljordan
Copy link
Contributor

He protecc, he attacc, but most importantly, he ...?

@0xKiwi 0xKiwi merged commit ed3ab82 into prysmaticlabs:master Jan 23, 2020
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
* Add flag for attester protection

* Remove flags

* Add attestation history DB functions to validator client

* Fix comments

* Update interface to new funcs

* Fix test

* Add flags

* Implement most of attester protection

* Fix tests

* Add test for pruning

* Add more test cases for prunes

* Remove todo comment

* Fix comments

* Rename functions

* Fix logs

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
* Add flag for attester protection

* Remove flags

* Add attestation history DB functions to validator client

* Fix comments

* Update interface to new funcs

* Fix test

* Add flags

* Implement most of attester protection

* Fix tests

* Add test for pruning

* Add more test cases for prunes

* Remove todo comment

* Fix comments

* Rename functions

* Fix logs

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
@0xKiwi 0xKiwi deleted the protecc-attester branch March 15, 2020 15:04
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.

None yet

3 participants