Implement a headers only sync - #606
Merged
rustaceanrob merged 2 commits intoSep 17, 2026
Merged
Conversation
rustaceanrob
force-pushed
the
26-9-12-filter-skip-v2
branch
from
September 16, 2026 12:08
94a04cd to
3b469d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alternative to #605
This is a minimally invasive change that does what I think is the desired goal. The problem is that new wallets do not need to request filters, but still need to find the chain of most work. I was thinking with #605 they may also want to check a few recent filters, but the configuration can be prone to footguns as explored in that pull request. Thinking on it more, I don't think there is much of a reason to add a filter window when the
rescan/rescan_frommethods already exist. If the user created a new wallet and wants to immediately get a payment, this initial sync should still be within a reasonable tolerance level (under a minute).In addition to this feature, to make the initial sync even faster, the hardcoded
HashCheckpoints might be introduced in a more maintainable/reasonable way.