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

Fix ever-growing accounts map #1326

Open
brennanjl opened this issue Jan 31, 2025 · 1 comment · May be fixed by #1333
Open

Fix ever-growing accounts map #1326

brennanjl opened this issue Jan 31, 2025 · 1 comment · May be fixed by #1333
Assignees

Comments

@brennanjl
Copy link
Collaborator

As discussed, there is a map that was added to the account store that grows forever. We should make sure to use a proper LRU cache or clear it periodically (e.g. at the end of each block) to make sure that we don't have it grow indefinitely.

@jchappelow
Copy link
Member

The hashicorp LRU package is a good option, as is https://pkg.go.dev/github.com/decred/dcrd/container/lru, which is written by some very good developers in the space.

@jchappelow jchappelow linked a pull request Jan 31, 2025 that will close this issue
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 a pull request may close this issue.

3 participants