-
Notifications
You must be signed in to change notification settings - Fork 67
Description
In times of differentiating apphashes recent chain-halts have shown one factor to be crucial:
- to get a chain back on it's feet everybody needs to start from the same state using the same version.
CryptoCrew is proposing to take the following path for relaunching Dig:
Plan alpha
- a) Roll back state to height
4407835and hash9992D8150EEF051E0385F31389CA56A01DA30634DEDC033726262492E311B2B9by performing:
sudo systemctl stop digd
digd --home ~/.dig rollback
- b) or restore a snapshot created from height
4407835- need to preserve and restore priv_validator_state when taking this path!
link: https://quicksync.ccvalidators.com/SNAPSHOTS/dig-1_20221029_default.tar.lz4
md5-sum: 7fb412ee169f7e181ad653602a5ac55e
height: 4407835
size: 137MB
- previously signed rounds of
4407836must not be signed again - this is why we restore our validator state before starting up the node
-
compile digd
v2.6.0usinggo 1.19.3and move binary to correct folder (~/.dig/cosmovisor/upgrades/v2/bin/for cosmovisor users) -
start nodes at a coordinated date with enough time to prepare. as soon we reach the latest round and have >2/3 VP agreeing the chain will resume. Tests using digd
v2.6.0on the above provided snapshot have shown good results.
Backup plan
Plan alpha could fail in case of the following situations:
- digd
v2.6.0is unable to produce a deterministic result in block4407836due to unforseen reasons - the chain is able resume but one or more validators are hardslashed because they didn't preserve and restore their validator state and doublesign by accident
In the case plan alpha fails we have two options:
a) if the chain resumes we could revert any possible hardslashes in an upgrade, like secret network and chihuahua did recently
b) last resort would be to use a state-export of block 4407835 to create a new genesis and relauch dig-1 from this state while accepting the archive problem. CryptoCrew have exported that state and are providing it here: https://quicksync.ccvalidators.com/SNAPSHOTS/dig-export-4407835.json