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

Prune database without finality #1872

Open
michaelsproul opened this issue Nov 9, 2020 · 2 comments
Open

Prune database without finality #1872

michaelsproul opened this issue Nov 9, 2020 · 2 comments

Comments

@michaelsproul
Copy link
Member

Description

As per this comment: #1782 (comment), we could consider pruning minority forks from the database during periods of non-finality.

This issue exists to track this specific disk usage optimisation, as opposed to #1782 which was more general.

I'm marking it as A1 for now, as this optimisation is very contextual and not required for mainnet per se

@Ifechukwudaniel
Copy link

Hey can i do this

@michaelsproul
Copy link
Member Author

Hey @Ifechukwudaniel we're working on a major overhaul of the DB in this branch: #3206. Our current thinking is that pruning the database without finality is not really necessary with the disk savings provided by the new schema.

@potuz from Prysm raised an optimisation where we could avoid importing blocks with old parents, which would help this issue indirectly and also save on lots of processing time. To make this optimisation safe, we'd have to import blocks if we see any descendant block building on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants