Skip to content

Don't produce messages for optimistic blocks - #216

Merged
mpetrunic merged 1 commit into
ethereum:masterfrom
sigp:refuse-produce-optimistic
May 19, 2022
Merged

Don't produce messages for optimistic blocks#216
mpetrunic merged 1 commit into
ethereum:masterfrom
sigp:refuse-produce-optimistic

Conversation

@paulhauner

Copy link
Copy Markdown
Contributor

This PR ensures that the BN does not produce attestations, aggregate attestations or sync committee contributions that refer to optimistic blocks.

Attesting to an optimistic block is very bad and could result in finalizing an invalid execution payload. The changes in this PR mean that the VC doesn't need to check the optimistic status for each object. This saves calls to the API and also protects against faults in VC implementations.

Although sync committee contributions to optimistic blocks couldn't result in an invalid finalized block, it could cause havoc for light clients.

Comment thread apis/validator/attestation_data.yaml
Comment thread apis/validator/sync_committee_contribution.yaml
@djrtwo

djrtwo commented May 19, 2022

Copy link
Copy Markdown
Contributor

Looks reasonable to me. Will approve when @mpetrunic gets a chance to rview your response above

@mpetrunic
mpetrunic merged commit cef3f08 into ethereum:master May 19, 2022
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.

4 participants