Skip to content

Remove unused legacy header verification helpers #1712

Description

@icellan

services/legacy/common.go defines verifyHeadersChain and checkProofOfWork, but a repository-wide search finds no callers. unused is disabled for the legacy package, so the dead code persists and can misleadingly suggest that the active header path has these checks.

Remove the unused helpers and imports after checking for any remaining dependent symbols. Do not wire them into the live path as-is: the PoW helper only compares the hash with the header-declared target, without checking a network limit, and that check alone cannot establish checkpoint ancestry.

Acceptance: repository-wide symbol search shows no unresolved references, the legacy package builds and its relevant tests pass, and active header validation is documented at its actual call sites.

Activity

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