-
Notifications
You must be signed in to change notification settings - Fork 902
Open
Labels
databaseoptimizationSomething to make Lighthouse run more efficiently.Something to make Lighthouse run more efficiently.
Description
Description
Currently Lighthouse stores every block from genesis to the current head, with no option to drop the older parts of history.
The p2p spec defines a parameter MIN_EPOCHS_FOR_BLOCK_REQUESTS
equal to ~5 months, which we could adopt as the default backfill period for new checkpoint synced nodes.
If community consensus enables it we could also automatically prune blocks older than MIN_EPOCHS_FOR_BLOCK_REQUESTS
on all nodes in real time. Assuming finality and no storage of historic states this would make the size of the database approximately constant 😻
dylanwinn
Metadata
Metadata
Assignees
Labels
databaseoptimizationSomething to make Lighthouse run more efficiently.Something to make Lighthouse run more efficiently.