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

spv: Request headers from peer after initial sync #2316

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

matheusd
Copy link
Member

This modifies the peer setup procedure to request any updated headers from a newly connected peer if the connection is made after the initial sync is completed.

This speeds up re-syncing after initial sync when the local client has been offline for some time (for example, due to a flicking network connection) by ensuring any and all updated headers are requested immediately, instead of waiting until a new block is announced to begin the catchup process.

This modifies the peer setup procedure to request any updated headers
from a newly connected peer if the connection is made after the initial
sync is completed.

This speeds up re-syncing after initial sync when the local client has
been offline for some time (for example, due to a flicking network
connection) by ensuring any and all updated headers are requested
immediately, instead of waiting until a new block is announced to begin
the catchup process.
@jrick jrick merged commit b9fd1a7 into decred:master Dec 13, 2023
2 checks passed
@matheusd matheusd deleted the spv-req-headers branch December 13, 2023 14:44
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.

2 participants