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 Slashing Handler in Sync #3260

Merged
merged 11 commits into from
Aug 22, 2019
Merged

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Aug 21, 2019

Part of #3147

  • Implements validator and subscriber for attester slashings in the sync service.
  • Add unit test

@nisdas nisdas added Ready For Review Networking P2P related items labels Aug 21, 2019
@codecov
Copy link

codecov bot commented Aug 21, 2019

Codecov Report

Merging #3260 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3260   +/-   ##
=======================================
  Coverage   51.12%   51.12%           
=======================================
  Files         153      153           
  Lines       10797    10797           
=======================================
  Hits         5520     5520           
  Misses       4404     4404           
  Partials      873      873

}

if err := blocks.VerifyAttesterSlashing(state, slashing); err != nil {
log.WithError(err).Warn("Received invalid attester slashing")
Copy link
Member

@terencechain terencechain Aug 21, 2019

Choose a reason for hiding this comment

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

Where/when do we blacklist failed attester slashing?

Say we got to this point, the attester slashing failed to process, we error'ed out, and the same attester slashing comes again

@nisdas nisdas merged commit c09a6b8 into master Aug 22, 2019
@nisdas nisdas deleted the attesterSlashingHandler branch August 22, 2019 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking P2P related items
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants