celestiaorg/docs

Explore alternatives to `tendermint unsafe-reset-all`

Closed this issue · 1 comments

Context

Discussion with @evan-forbes

Problem

celestia-appd tendermint unsafe-reset-all may delete important state like priv_validator_state.json

Proposal

Investigate if celestia-appd tendermint unsafe-reset-all deletes priv_validator_state.json. If it does, then explore alternatives like: celestia-appd tendermint reset-state or rm -rf data/*.db. If either of those work then consider updating https://docs.celestia.org/nodes/consensus-node#_2-3-committed-an-invalid-block-wrong-block-header-version to describe that command instead

reset-state is probably sufficient because we don't need to delete priv_validator_state.json.

Ref: https://github.com/celestiaorg/celestia-core/blob/0d2b63836d0f4587e162bfded58f53fba238e69c/cmd/cometbft/commands/reset.go#L104-L110