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

Consider introducing checkpoints to shorten initial header validation #415

Open
tnull opened this issue Dec 2, 2024 · 0 comments
Open

Comments

@tnull
Copy link
Collaborator

tnull commented Dec 2, 2024

Currently, we initialize all chain listeners with the genesis hash, which results in a complete validation of the header chain upon first startup.

We should consider a way to cut this short. Unfortunately it's not as easy as polling the best tip and initializing the chain listeners with the most-recent tip as we don't have the chain source available during initialization in the builder (cf. #414 (comment)).

However, one way to improve the initial startup time could be to introduce a hard-coded, more recent, checkpoint with which we initialize all the chain listeners.

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

No branches or pull requests

1 participant