This script installs all the dependencies (and system configurations) that are necessary for the binary to run. Since this file already gets called from within the other scripts, it is not required to call this yourself.
Warning
This script should only be used if you run a full-node and have to perform the "plan_crypto"-upgrade!
This means that you are currently operating on the Evmos fork of GenesisL1 (repo: genesis-ethermint
) and the node synced till height: 7400000
which caused it to panic.
This script takes care of the needed steps to upgrade the node to the new fork:
- It stops the node (the service)
- Installs all the necessary dependencies
- Creates a backup of existing config.toml or app.toml files (as .toml.bak)
- Introduces new config files
- Fetches latest seeds and peers
- Builds the binaries
sh setup/upgrade.sh
After a successful upgrade, start the node again using
systemctl start tgenesisd
and monitor its status withjournalctl -fu tgenesisd -ocat
.
Caution
Running this will wipe the entire database (the /data-folder excluding the priv_validator_state.json file).
Make a backup if needed: utils/backup/create.sh.
This script takes care of the needed steps to join the network via State Sync:
- It stops the service (if it exists)
- Installs all the necessary dependencies
- Builds the binaries
- Initializes the node
- Resets config files
- Fetches latest seeds and peers
- Fetches
genesis.json
-file - Fetches RPC servers
- Installs the service
- Recalibrates [statesync] settings to a recent height (default:
<latest_height>
-2000
)
sh setup/state-sync.sh <moniker>
If you wish to change the default [height_interval] of
2000
, run utils/tools/restate-sync.sh [height_interval] yourself after having run setup/state-sync.sh; see utils/README.md for more information.If you can't access the
genesisd
command afterwards, execute the. ~/.bashrc
orsource ~/.bashrc
command in your terminal.
Important
create-validator.sh requires a key.
If you haven't already created or imported one, use: utils/key/create.sh or utils/key/import.sh.
This script should only be run once you're fully synced. It's a wizard; prompting the user only the required fields for creating a validator.
sh setup/create-validator.sh <moniker> <key_alias>