Cosmovisor Sync
Setup steps for cosmovisor gang.
Cosmovisor is a binary manager that can perform upgrades automatically. It can be configured to automatically download binaries, but this is not recommended!
Download and configure Cosmovisor
Download the latest cosmovisor binary cosmovisor v1.5.0 binary:
wget https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.5.0/cosmovisor-v1.5.0-linux-amd64.tar.gz && tar -xvzf cosmovisor-v1.5.0-linux-amd64.tar.gzwget https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.5.0/cosmovisor-v1.5.0-darwin-amd64.tar.gz && tar -xvzf cosmovisor-v1.5.0-darwin-amd64.tar.gzwget https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor%2Fv1.5.0/cosmovisor-v1.5.0-linux-arm64.tar.gz && tar -xvzf cosmovisor-v1.5.0-linux-arm64.tar.gzAdd the following to the end of your
~/.bashrcor~/.zshrcfile:
# cosmovisor
export DAEMON_NAME=layerd
export DAEMON_HOME=$HOME/.layer
export DAEMON_RESTART_AFTER_UPGRADE=true
export DAEMON_ALLOW_DOWNLOAD_BINARIES=false
export DAEMON_POLL_INTERVAL=300ms
export UNSAFE_SKIP_BACKUP=true
export DAEMON_PREUPGRADE_MAX_RETRIES=0Use source ~/.bashrc or source ~/.zshrc to load the variables.
Initialize cosmovisor:
# Initialize cosmovisor.
./cosmovisor init ~/layer/binaries/v6.1.8/layerdStart your node with cosmovisor:
When a new upgrade is announced, follow the Binary Upgrades page to download the binary and run add-upgrade before the upgrade height.
Last updated
Was this helpful?

