-
Notifications
You must be signed in to change notification settings - Fork 291
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
Refactor Staged Stream Sync Long Range #4824
base: dev
Are you sure you want to change the base?
Conversation
is it possible to write test in this PR as well ? |
done |
@GheisMohammadi for long range how many block behind are we talking about |
The node starts in long-range sync mode by default. Once it catches up, it switches to short-range sync. |
Also, I am currently working on a PR that dynamically switches between short-range and long-range sync based on the block gap. |
Issue
This PR refactors Staged Stream Sync Long Range stage. It adds
BlockHashes
stage to Staged Stream Sync. By calculating the correct hash first, this ensures data integrity and reliability in the block download process.