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

Double (invalid) slashing tests #1760

Closed
protolambda opened this issue Apr 27, 2020 · 3 comments
Closed

Double (invalid) slashing tests #1760

protolambda opened this issue Apr 27, 2020 · 3 comments
Assignees

Comments

@protolambda
Copy link
Collaborator

Tracking isssue, we should test double slashings. Lighthouse had a bug here, caused by over-optimization that was unaccounted for in the spec: sigp/lighthouse#1065

The tests should cover:

  • Two proposer slashings in the same block, for the same proposer, making the block invalid
  • Two attester slashings with overlap in attesters in the same block, similar to above.
    • Valid case: different sets of attesters with overlap, repeated in two attester slashings, but overlap should not be slashed twice.
    • Valid case: one attester twice, no other participants
@djrtwo
Copy link
Contributor

djrtwo commented May 4, 2020

I'd like to leave this issue open even after the close of #1781

I think it worth considering upping MAX_ATTESTER_SLASHINGS to 2 in v0.12. The main reason to keep it low is due to size considerations (max ~33kb per AttesterSlashing when 4M validators), but in lower ranges of validators (say ~300k validators) this is more like ~3kb.

The other added benefit is that it takes half the amount of time to fully slash an attacker when a serious attack is found

cc: @vbuterin for thoughts on upping the value of this constant

@protolambda
Copy link
Collaborator Author

@djrtwo Can we close this issue now, with the tests in #1794 ?

@djrtwo
Copy link
Contributor

djrtwo commented May 19, 2020

yep!

@djrtwo djrtwo closed this as completed May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants