Skip to content

Deprecate para_id field from chain-specification #7384

@skunert

Description

Prerequisites: #75

The 'para_id' field in the chain specification can be removed once we implement a method to query the ParaId embedded in a runtime.

Users frequently encounter the error: "included head not present in relay storage proof". This occurs when the node-side incorrectly constructs the relay chain storage proof for the parachain inherent using a mismatched ParaId.

Implementation Plan:

  1. Fetch ParaId from runtime using the runtime API introduced in Introduce new runtime api GetParachainId #75
  2. Identify all locations where chain specification's 'para_id' is currently used
  3. Replace these instances with ParaId from runtime
  4. Implement validation to detect mismatches between chain specification ParaId and runtime ParaId
  5. Add informational message indicating that chain specification ParaId is deprecated

Metadata

Assignees

No one assigned

    Labels

    T0-nodeThis PR/Issue is related to the topic “node”.

    Projects

    • Status

      Milestone 1

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions