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

ledger: introduce expired stake cache #6014

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

algorandskiy
Copy link
Contributor

Summary

Added a simple two-page cache for expired account stake since the underlying query is quite expensive.

Test Plan

Added new unit tests for the cache and extended existing test to check its use.

@algorandskiy algorandskiy requested review from cce, gmalouf and ohill June 5, 2024 20:23
@algorandskiy algorandskiy self-assigned this Jun 5, 2024
@cce cce changed the title ledger: introduce exprired stake cache ledger: introduce expired stake cache Jun 5, 2024
cce
cce previously approved these changes Jun 5, 2024
ledger/acctonline.go Show resolved Hide resolved
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.96%. Comparing base (6c91f52) to head (909b617).
Report is 16 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6014      +/-   ##
==========================================
+ Coverage   55.94%   55.96%   +0.01%     
==========================================
  Files         482      483       +1     
  Lines       68310    68336      +26     
==========================================
+ Hits        38219    38247      +28     
  Misses      27500    27500              
+ Partials     2591     2589       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ledger/acctonline.go Outdated Show resolved Hide resolved
cce
cce previously approved these changes Jun 6, 2024
@algorandskiy algorandskiy merged commit f851f50 into algorand:master Jun 7, 2024
18 checks passed
@cce cce requested a review from jannotti June 12, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants