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

Update next slot cache correctly under late task #12462

Merged
merged 5 commits into from
May 31, 2023

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented May 25, 2023

In the event there's a late block coming (ie, no block 4s mark), we should still update the next slot cache without proposing the next slot

Also fixed a deep source complaint on: Remove the internal goroutine and call the function using 'go'

@terencechain terencechain requested a review from a team as a code owner May 25, 2023 02:35
@terencechain terencechain added the Bug Something isn't working label May 25, 2023
Copy link
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

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

Looks good to me, Deepsource's complain can be actually be satisfied this time.

lastRoot, lastState = headRoot[:], headState
}
if err := transition.UpdateNextSlotCache(ctx, lastRoot, lastState); err != nil {
log.WithError(err).Debug("could not update next slot state cache")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
log.WithError(err).Debug("could not update next slot state cache")
log.WithError(err).Debug("Could not update next slot state cache")

Copy link
Contributor

Choose a reason for hiding this comment

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

@terencechain terencechain self-assigned this May 25, 2023
@terencechain terencechain added the Ready For Review A pull request ready for code review label May 25, 2023
@terencechain terencechain merged commit e516a20 into develop May 31, 2023
@terencechain terencechain deleted the update-next-slot-skip-slot-all-the-time branch May 31, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working 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