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

[Merged by Bors] - Ignore attestations to finalized blocks (don't reject) #3052

Closed

Conversation

michaelsproul
Copy link
Member

@michaelsproul michaelsproul commented Mar 3, 2022

Issue Addressed

Addresses spec changes from v1.1.0:

Proposed Changes

  • Downgrade the REJECT for HeadBlockFinalized to an IGNORE. This applies to both unaggregated and aggregated attestations.

Additional Info

I thought about also changing the penalty for UnknownTargetRoot but I don't think it's reachable in practice.

@michaelsproul michaelsproul added the ready-for-review The code is ready for review label Mar 3, 2022
@michaelsproul michaelsproul requested a review from AgeManning March 3, 2022 00:02
@michaelsproul
Copy link
Member Author

I've kept the HighToleranceError peer penalty because these conditions are checked pre-signature verification so we'd risk being DoSed if we removed it. A malicious peer would just need to spam attestations with block roots that are pre-finalization.

Alternatively we could move this check behind signature verification, which is kind of where the spec implies it should be: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/p2p-interface.md#beacon_attestation_subnet_id. That would be a more drastic change however, and would require further consideration.

Copy link
Member

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

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

Yeah looks fine to me

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Mar 3, 2022
@michaelsproul
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Mar 4, 2022
## Issue Addressed

Addresses spec changes from v1.1.0:

- ethereum/consensus-specs#2830
- ethereum/consensus-specs#2846

## Proposed Changes

* Downgrade the REJECT for `HeadBlockFinalized` to an IGNORE. This applies to both unaggregated and aggregated attestations.

## Additional Info

I thought about also changing the penalty for `UnknownTargetRoot` but I don't think it's reachable in practice.
@bors bors bot changed the title Ignore attestations to finalized blocks (don't reject) [Merged by Bors] - Ignore attestations to finalized blocks (don't reject) Mar 4, 2022
@bors bors bot closed this Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants