-
Notifications
You must be signed in to change notification settings - Fork 274
Fast Recovery From App Hash Mismatch
yihuang edited this page Nov 4, 2022
·
16 revisions
cronosd rollback provide a way to rollback and recover from app-hash mismatch failure, but it takes hours to run, here is a faster way to do it.
NOTICE: python-iavl only support rocksdb for now.
- Disable iavl fastnode
fastnode reindex itself is slow enough, to make it faster, disable it.
Set
iavl-disable-fastnode = trueinapp.toml - Rollback tendermint state
Using the standalone
$ tendermint rollback --home /chain/.cronosd/tendermintcli, could be installed with:$ go install github.com/tendermint/tendermint/cmd/[email protected] - Fast rollback app state, replace
$VERto the version number shown in the above command.$ nix run github:yihuang/python-iavl/v0.0.1 -- fast-rollback --db /path/to/data/application.db --target $VER