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

Finalize blocks on confirmation depth #4

Merged
merged 3 commits into from
Jul 5, 2024
Merged

Conversation

liuchengxu
Copy link
Member

@liuchengxu liuchengxu commented Jul 5, 2024

Without the finalization, the memory usage could become extremely high when the chain grows to 220000+. With some investigation, I found that it's caused by NonCanonicalOverlay when creating the DB backend.

It's observed that the memory usage could be extremely high without the
finalization, when the chain grows to 220000+. Concretely, the culprit
of the high memory usage is creating `NonCanonicalOverlay`.

There are also a few other improvements to import-blocks command.
@liuchengxu liuchengxu merged commit 5a8c608 into main Jul 5, 2024
3 checks passed
@liuchengxu liuchengxu deleted the improve-import-blocks branch July 5, 2024 08:38
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