celestia-node icon indicating copy to clipboard operation
celestia-node copied to clipboard

Rollback tooling

Open Wondertan opened this issue 3 months ago • 2 comments

Node may go on a wrong fork with invalid blocks/squares, as with the recent bug in Arabica testnet. The current solution is to resync the whole chain, while instead we provide a CLI tool to rollback to a particular height.

We could enable this over RPC at runtime or with cel-shed when the node is down. Looking long-term, when BN becomes a storage node with crud for squares and headers, it could make sense to go directly to the approach in runtime

Wondertan avatar Sep 16 '25 12:09 Wondertan

Issue implies as fact that invalid blocks can be accepted by the node and be stored. Before implementing the solution for rollback we need to identify the root issue of how it can be possible that invalid block got stored in the first place.

walldiss avatar Sep 16 '25 13:09 walldiss

Issue implies as fact that invalid blocks can be accepted by the node and be stored.

Yes, which can happen because of the bug or a real fork

Wondertan avatar Sep 16 '25 13:09 Wondertan