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

Refactor on_attestation return signature #8310

Merged
merged 2 commits into from Jan 21, 2021
Merged

Conversation

terencechain
Copy link
Member

What type of PR is this?

Clean up

What does this PR do? Why is it needed?
on_attestation returns ([]uint64, error). The attesting indices []uint64 was never used. This PR removes it

Which issues(s) does this PR fix?

Fixes # N/A

Other notes for review
N/A

@terencechain terencechain added Ready For Review A pull request ready for code review Cleanup Code health! labels Jan 21, 2021
@terencechain terencechain self-assigned this Jan 21, 2021
@terencechain terencechain requested a review from a team as a code owner January 21, 2021 17:29
@prestonvanloon
Copy link
Member

beacon-chain/blockchain/receive_attestation.go:39:14: Unhandled error for function call github.com/pkg/errors.Wrap

if err != nil {
return errors.Wrap(err, "could not process attestation")
if err := s.onAttestation(ctx, att); err != nil {
errors.Wrap(err, "could not process attestation")
Copy link
Member

Choose a reason for hiding this comment

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

?

Copy link
Member

Choose a reason for hiding this comment

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

Missing return

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh man. Copy pasta failed. Surprising Goland didnt alert me for that...

Copy link
Member

Choose a reason for hiding this comment

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

Thankfully we have static analysis!

@prylabs-bulldozer prylabs-bulldozer bot merged commit 2586be2 into develop Jan 21, 2021
@delete-merged-branch delete-merged-branch bot deleted the update-on-att-sig branch January 21, 2021 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Code health! 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

2 participants