Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Revert persistent data related to parachains management #11178

@davxy

Description

@davxy

Substrate's CLI "revert" command is supposed to revert the node state by N blocks back to at most the last finalized one and leave the node in a consistent state.

Currently the command reverts:

  • blockchain state;
  • consensus related aux data (currently babe and grandpa)

It has been observed that some information related to parachains management should be reverted as well.

We can divide the information that has been added by the blocks that follows the revert point in two categories:

  1. data that somehow depends on the blockchain state;
  2. data that is independent from the blockchain state.

Data that belongs to the first category must be reverted.
If not, it may end up referencing some blockchain data that in the meantime has been wiped out by the overall revert procedure.

Data from the second category is mostly a "nice to have" cleanup feature.
If this is not reverted it should be a (desiderably negligible) leftover that doesn't influence the node's operational status once restarted.

The first step towards the goal is to identify the data that requires to be reverted and then possibly leverage some interfaces that are already present to remove/rollback parachains related data.

For more context about what has already been done see #10962, #11022 and #11162

Metadata

Metadata

Assignees

Labels

I3-bugThe node fails to follow expected behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions