Skip to content

dash-spv: validate header difficulty against the network-required target #1116

Closed

Description

@ZocoLini

BlockHeaderValidator (dash-spv/src/validation/header.rs) only checks that each hash meets the target declared in its own bits. There is no expected-difficulty (DGW) check, so past the last checkpoint a peer can serve a cheap header chain with minimal bits.

Fix: compute the required target per height and reject headers whose bits don't match it.

Activity

  1. self-assigned this
    on Oct 7, 2026
  2. added 2 commits that reference this issue on Oct 13, 2026
    321d486
    03e740e
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