Skip to content

Let the wallet save more scanned block headers by spare headers beyond a day #7738

@SWvheerden

Description

@SWvheerden

Bounty: Wallet Sparse Scanned Block Header Storage

Tier: M — 60,000 XTM

Description

The wallet currently saves only the last 720 scanned block headers. If the wallet needs to rescan beyond that window, it falls back to scanning from the wallet birthday, which is slow. Implement a sparse storage strategy that keeps all headers for recent blocks and progressively fewer headers for older blocks, so the wallet almost always has a recent-enough starting point for rescans.

Acceptance Criteria

  • tip - 720 to tip: all block headers are saved
  • tip - 10,000 to tip - 720: 1 header per 100 blocks is saved
  • tip - 100,000 to tip - 10,000: 1 header per 1,000 blocks is saved
  • genesis to tip - 100,000: 1 header per 5,000 blocks is saved
  • When the wallet initiates a scan, it finds the most recent saved header and starts from there instead of the birthday

Context

How to Claim

  1. Comment on this issue to signal intent (courtesy, not a lock)
  2. Fork the repo and do the work
  3. Submit a PR that meets the acceptance criteria
  4. First PR that passes review and gets merged wins the bounty
  5. On acceptance, XTM payment is processed

Notes

  • AI-assisted development is expected and encouraged
  • If you get stuck, ask in Discord
  • If you can't complete it within 14 days of claiming, let us know so someone else can pick it up

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions