upgrades
folder of cosmovisor before upgrade time.Be aware of blocks like this for migration specific notes
When you see<Placeholder>
in code blocks below, please replace them with correct values.
For validator migration, we recommend cloning a new copy to avoid confusion, since the previous guide stored data within the repo folder.If your existing repo folder is already at~
, appending the clone command with a new folder name, and adopt this guide by changing thecd ~/likecoin-chain
commands.
liked init
and prepare a systemd service file.~/
, and the liked data directory will be ~/.liked
If you are migrating an existing node on the same host, please ensure that your existing.liked
folder is not at your home directory, otherwise this might overwrite your files!
LIKED_VERSION
to be used in the above Mainnet Github repository.likecoin-public-testnet-5
. Following is the command for running the setup-node script for testnet. Please confirm the latest testnet and parameters to be used in the testnet Github repository.LIKED_VERSION=1.2.0
. 1.2.0 is the version we start adpoting cosmovisor, it should upgrade itself to newer version during sync.For existing validators hosted with the Docker Compose guide only. New operators should skip this section.Steps below generally applies to custom setups but paths to your old.liked
folder and the command to stop the node will be different.
.liked
folder generated by the script as .liked.template
:.liked
folder to ~/.liked
:cosmovisor
sub-folder created by the script to ~/.liked
:~/.liked
:.liked
directly instead of inside keyring-file
folder, please move the following files to ~/.liked/keyring-file
folder so the liked flag --keyring-backend=file
works:Skip this section for migrating operators
curl -s https://likecoin-public-testnet-5.oursky.dev/rpc/block
result.block.header.height
, while the hash is result.block_id.hash
~/.liked/config/config.toml
. Locate the [statesync]
section and update it to the following values:rpc_servers = "https://likecoin-public-testnet-5.oursky.dev:443/rpc/,https://likecoin-public-testnet-5-node2.oursky.dev:443/rpc/"
if you are setting up testnet.~/.liked/config/config.toml
and ~/.liked/config/app.toml
, then change the defaults as desired.app.toml
:nanoekil
/etc/systemd/system/liked.service
.For migrating validators, please ensure the old instance is turned off before you proceed!
result.sync_info.latest_block_height
, while result.sync_info.catching_up
reflects if the node has finished sync up.For migrating validators, this is the final step. The validator node should resume operation immediately.
journalctl
:systemctl
:~/.liked/keyring-file
. This account is required to manage the validator and cast votes on proposals.commission-max-rate
and commission-max-change-rate
cannot be changed afterwards.~/.liked/config
and ~/.liked/keyring-file
which contains your node key, consensus key and operator key. For security, please consider encrypting your backup with tools like GPG before transferring off the host.123
is the proposal number and yes
is the voteunjail
transaction:liked
binary within .liked/cosmovisor/upgrades
folder before the upgrade time. Please refer to related chain upgrade guides for exact steps.docker-compose.yml
and replace it with the new version:.env
to target new docker image tag:Please note that we will stop maintaining this method soon.