Skip to content

dash-spv: storage corruption read by several sync paths never triggers a resync #1408

Done

Description

@ZocoLini

The client wipes and resyncs its storage when a sync manager returns SyncError::Storage(StorageError::Corruption(_)). Several readers swallow that error or turn it into another type first, so the corruption never reaches report_corruption and the client never recovers.

  • The masternode engine wraps it in FeedError::HeaderStorage.
  • The MnListDiff path gives the diff up, and the QRInfo path returns MasternodeSyncFailed(String).
  • The filters pipeline, ChainLock header matching and block re-apply only log it.

The filters pipeline is the worst case: with a corrupted header segment, the batch is retried on every tick and filter sync stalls for good.

These readers should return the corruption as SyncError::Storage, so the client wipes the storage and syncs again.

Found in the review of #1407.

Activity

  1. self-assigned this
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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