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

[Merged by Bors] - Ensure caches are built for block_rewards POST API #3305

Closed

Conversation

michaelsproul
Copy link
Member

Issue Addressed

Follow up to #3290 that fixes a caching bug

Proposed Changes

Build the committee cache for the new POST /lighthouse/analysis/block_rewards API. Due to an unusual quirk of the total active balance cache the API endpoint would sometimes fail after loading a state from disk which had a current epoch cache but not a total active balance cache. This PR adds calls to build the caches immediately before they're required, and has been running smoothly with blockdreamer the last few days.

@michaelsproul michaelsproul added ready-for-review The code is ready for review low-hanging-fruit Easy to resolve, get it before someone else does! labels Jul 4, 2022
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

LGTM!

@paulhauner paulhauner added ready-for-merge This PR is ready to merge. and removed low-hanging-fruit Easy to resolve, get it before someone else does! ready-for-review The code is ready for review labels Jul 4, 2022
@paulhauner
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Jul 4, 2022
## Issue Addressed

Follow up to #3290 that fixes a caching bug

## Proposed Changes

Build the committee cache for the new `POST /lighthouse/analysis/block_rewards` API. Due to an unusual quirk of the total active balance cache the API endpoint would sometimes fail after loading a state from disk which had a current epoch cache _but not_  a total active balance cache. This PR adds calls to build the caches immediately before they're required, and has been running smoothly with `blockdreamer` the last few days.
@bors bors bot changed the title Ensure caches are built for block_rewards POST API [Merged by Bors] - Ensure caches are built for block_rewards POST API Jul 4, 2022
@bors bors bot closed this Jul 4, 2022
@michaelsproul michaelsproul deleted the block-reward-tweaks branch July 4, 2022 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants