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

Add verify slot target epoch function and apply all #8273

Merged
merged 3 commits into from
Jan 19, 2021

Conversation

terencechain
Copy link
Member

What type of PR is this?

Feature

What does this PR do? Why is it needed?

This PR adds a helper for ValidateSlotTargetEpoch. The helper is then applied to 1.) sync 2.) fork choice 3.) process attestation for block

Which issues(s) does this PR fix?

N/A. Minor refactor

Other notes for review

@terencechain terencechain self-assigned this Jan 15, 2021
@terencechain terencechain requested a review from a team as a code owner January 15, 2021 23:45
@@ -45,22 +44,14 @@ func (s *Service) onAttestation(ctx context.Context, a *ethpb.Attestation) ([]ui
ctx, span := trace.StartSpan(ctx, "blockChain.onAttestation")
defer span.End()

if a == nil {
Copy link
Member Author

Choose a reason for hiding this comment

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

This got missed in #8272

@prylabs-bulldozer prylabs-bulldozer bot merged commit bc2c206 into develop Jan 19, 2021
@delete-merged-branch delete-merged-branch bot deleted the slot-target-epoch-check branch January 19, 2021 21:41
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.

2 participants