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

Move attestation's source checkpoint validation to VerifyAttestationNoVerifySignature #8598

Merged
merged 3 commits into from
Mar 12, 2021

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Mar 12, 2021

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

The purpose of #8566 was to enable attestation validation without needing to modify the state. The refactor did not move source checkpoint validation from ProcessAttestationNoVerifySignature to VerifyAttestationNoVerifySignature, which this PR corrects.

I also removed the beacon state return value from ProcessAttestationNoVerifySignature because it does not modify the state in any way.

Which issues(s) does this PR fix?

N/A

Other notes for review

N/A

@rkapka rkapka requested a review from a team as a code owner March 12, 2021 08:50
@@ -105,41 +105,52 @@ func VerifyAttestationNoVerifySignature(
ctx context.Context,
beaconState iface.BeaconState,
att *ethpb.Attestation,
) (iface.BeaconState, error) {
) error {
Copy link
Member

Choose a reason for hiding this comment

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

if you arent returning anything, please change the input to a read only state.

@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #8598 (3d610e3) into develop (dc6dee3) will decrease coverage by 0.07%.
The diff coverage is 85.00%.

@@             Coverage Diff             @@
##           develop    #8598      +/-   ##
===========================================
- Coverage    61.40%   61.32%   -0.08%     
===========================================
  Files          484      483       -1     
  Lines        34205    34151      -54     
===========================================
- Hits         21004    20944      -60     
- Misses       10096    10108      +12     
+ Partials      3105     3099       -6     

@prylabs-bulldozer prylabs-bulldozer bot merged commit c577fbd into develop Mar 12, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix-verify-attestation branch March 12, 2021 21:43
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.

3 participants