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: POC of simpler lookupLatest #3747

Closed
wants to merge 2 commits into from

Conversation

cce
Copy link
Contributor

@cce cce commented Mar 10, 2022

Summary

POC of a simpler lookupLatest method, easier to read without whitespace diffs: https://github.com/algorand/go-algorand/pull/3747/files?diff=unified&w=1

Since REST API is the only remaining user of LookupLatest, this is a POC to let it acquire the RLock for the entire call, to reduce complexity while accessing through multiple account+resource caches, along with potential DB queries to two tables.

Test Plan

All existing tests should pass.

@cce
Copy link
Contributor Author

cce commented Mar 15, 2022

closing in favor of #3769

@cce cce closed this Mar 15, 2022
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.

1 participant