Skip to content

Implement a headers only sync - #606

Merged
rustaceanrob merged 2 commits into
2140-dev:masterfrom
rustaceanrob:26-9-12-filter-skip-v2
Sep 17, 2026
Merged

rustaceanrob merged 2 commits into
2140-dev:masterfrom
rustaceanrob:26-9-12-filter-skip-v2

Conversation

@rustaceanrob

Copy link
Copy Markdown
Member

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_from methods 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.

@rustaceanrob
rustaceanrob merged commit 81d422d into 2140-dev:master Sep 17, 2026
10 checks passed
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.

1 participant