ethereum / consensus-spec-tests

Common tests for the Ethereum proof-of-stake consensus layer
MIT License
74 stars 23 forks source link

Test idea: surround attester slashing in the wrong order #23

Open michaelsproul opened 3 years ago

michaelsproul commented 3 years ago

While fuzzing my slasher I noticed it was producing surround slashings in the wrong order (i.e. with the surrounding attestation as attestation_2). Given the sensitivity of the spec to this ordering, I think it would make sense to test an attester slashing that is completely valid, but swaps attestation_1 and attestation_2.