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

Remove duplicated target root check for fork choice attestation #8277

Merged
merged 6 commits into from Jan 20, 2021

Conversation

terencechain
Copy link
Member

What type of PR is this?

Other

What does this PR do? Why is it needed?
"Has target root been processed?" check was performed in the following lines in sync:
https://github.com/prysmaticlabs/prysm/blob/master/beacon-chain/sync/validate_aggregate_proof.go#L103
https://github.com/prysmaticlabs/prysm/blob/master/beacon-chain/sync/validate_beacon_attestation.go#L103

Therefore we can safely ignore this check as part of fork choice attestation validation.

For motivations and a proposal, read: https://hackmd.io/LZONsUmKSReJTSUYQR88Rw?view

Which issues(s) does this PR fix?

Fixes # N/A

Other notes for review
N/A

@terencechain terencechain self-assigned this Jan 18, 2021
@terencechain terencechain requested a review from a team as a code owner January 18, 2021 18:11
@terencechain terencechain added the Ready For Review A pull request ready for code review label Jan 18, 2021
rauljordan
rauljordan previously approved these changes Jan 19, 2021
prestonvanloon
prestonvanloon previously approved these changes Jan 19, 2021
@nisdas
Copy link
Member

nisdas commented Jan 20, 2021

@terencechain there are conflicts to resolve

@prylabs-bulldozer prylabs-bulldozer bot merged commit befe8d8 into develop Jan 20, 2021
@delete-merged-branch delete-merged-branch bot deleted the rm-redundant-tgt-check branch January 20, 2021 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants