Repository navigation
feat: adopt the FiltersMan node (compact-filter headers only) - #162
Merged
Merged
Conversation
The node now keeps only the compact-filter header chain, which always syncs from genesis, and `getblockchaininfo` no longer reports `filters_start`. The wallet birthday still reaches the daemon as `filtersStartHeight`, where it bounds rescans instead of the stored filter range. Refs #53 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
`loaddescriptor` now rescans up to the tip by itself: it waits for the filter headers, and a descriptor loaded while another rescan runs gets a follow-up pass. The extra `rescanblockchain` armed here used to be a cheap scan of the local filter store; with filters fetched from peers it would download the whole birthday..tip range a second time. A wallet-birthday change still arms it, since the node only applies the new birthday to later rescans. Refs #53 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The field is gone from the getblockchaininfo response model. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
floresta-mandacaru-ffi `feat/filters-man` with floresta-node at Floresta-mandacaru master `ec12000`. arm64-v8a keeps the 16 KB page alignment; x86_64 stays at 4 KB. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
jvsena42
force-pushed
the
feat/filters-man
branch
from
September 20, 2026 19:08
ddb1373 to
18ddc84
Compare
jvsena42
marked this pull request as ready for review
September 20, 2026 19:30
jvsena42
enabled auto-merge (rebase)
September 20, 2026 19:46
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.
Close #53 — app side of the
FiltersManport.Node stack (merged): jvsena42/Floresta-mandacaru#29–#34, #36–#40 · FFI: jvsena42/floresta-mandacaru-ffi#34
The node now persists only the compact-filter header chain (~58 MB on mainnet instead of 13+ GB) and downloads full filters on demand for each rescan. It also deletes the legacy
cfilters*files on first start, which is what gives already-synced devices their space back. The RPC contract the app relies on was deliberately kept, so the app change is small:getblockchaininfono longer reportsfilters_start. The wallet birthday still goes to the daemon asfiltersStartHeight; there it now bounds rescans instead of the stored filter range.loaddescriptornow rescans up to the tip by itself (it waits for the filter headers, and a descriptor loaded while another rescan runs gets a follow-up pass). The extrarescanblockchainarmed viaWALLET_NEEDS_RESCANused to be a cheap local scan; with filters fetched from peers it would download the whole birthday→tip range twice. A birthday change still arms it.rescan_blocks_processed/totalnow count scanned blocks of the range rather than matched blocks; the existingx/yUI works as is.Bindings
Rebuilt with
update-bindings.shfrom jvsena42/floresta-mandacaru-ffi#34 (2ac3bb1), which pinsfloresta-nodeat Floresta-mandacaru masterec12000(the merged FiltersMan stack). arm64-v8a keeps the 16 KB page alignment. That PR is merged (FFI masterddfe658), and itsCargo.lock,Cargo.tomlandsrcare identical to the commit these binaries were built from.Verification
./gradlew testDebugUnitTest detekt lintDebug assembleDebugpass.Medium_Phoneemulator (x86_64), upgrading an install of 0.15.0 that still had the old filter store:cfilters,cfilters-indexandcfilters-start-heightfiles were removed on first start andcfilter_headers.datcreated;rescan_blocks_processed/totaladvancing; it downloaded ~3.1 GB of filters, found the funding and the spending transaction, and the Node screen ended at Sync 100%;files/debug.logduring the rescan.getblockchaininfoagreed on height 967,886, 3,201,471,741 leaves and all 20 roots).User-visible trade-off
Rescans cost bandwidth now instead of disk: roughly the size of the filters between the wallet birthday and the tip (on the order of 1 GB per year of mainnet history), each time. Worth surfacing near the birthday picker / Rescan button in a follow-up.
🤖 Generated with Claude Code