Skip to content

dash-spv: checkpoint re-initialization resets filter storage but resumes download from the wallet position, manufacturing a sparse island #894

Open

Description

@QuantumExplorer

Problem

Observed on device logs (testnet; same shape reported on mainnet). When a client that already has densely stored filters is re-initialized from a checkpoint:

19:08  🚀 Starting sync from checkpoint at height 200000 instead of genesis (requested start height: 227121)
19:08  Starting filter header sync from 200000 to 208000
19:14  Starting filter download (scan_start=1514654, download_start=1514654, stored_filters_tip=0, target=1516000)

#893 makes the filter manager self-heal from any such island (one-time discard + re-download from the scan floor, verified convergent on the affected device). This issue tracks the island-manufacturer itself: after a checkpoint re-initialization that invalidates filter storage, the re-download floor and the wallet scan floor must agree — either resume storing from the re-init floor, or move the wallet/scan floor up to where storage actually resumes.

Full session-by-session log timeline available in #893 (comment) (root-cause follow-up comment).

🤖 Generated with Claude Code

Activity

  1. QuantumExplorer commented on Jul 15, 2026

    @QuantumExplorer
    MemberAuthor

    Refinement from the PR #893 discussion (see the timeline comment there): the island requires TWO cooperating failures — (T1) this issue: the checkpoint re-init resets filter storage and the refill resumes from the wallet's synced position instead of the new floor; AND (T2) the wallet's committed height regressing across an ABRUPT restart (evidence: session ended cleanly at committed 2504884, next session 70s later computed scan_start=200000; the persisted wallet row carries syncedHeight=2504884 today, and a restart following a long clean session resumed correctly at committed+1, while every restart following a SIGABRT/forced kill collapsed to the checkpoint floor). T1 alone yields a consistent state. T2 appears to live in the embedding app / platform-wallet sync-height persistence cadence, tracked separately on the dashpay/platform side.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions