For other full node operators
The documentation is designed for Liker Land and LikeCoin v2. For information on 3ook.com and LikeCoin v3, please visit docs.3ook.com and dao.like.co.
For non-validator nodes, or for validator nodes who cannot join the upgrade process, you may setup a full node or replace your current full node after the upgrade is finished.
Clone the software if you haven't already have one:
git clone https://github.com/likecoin/likecoin-chainSwitch to the
fotan-1branch:git checkout fotan-1Backup
docker-compose.ymlif you have one:cp docker-compose.yml docker-compose.yml.sheungwanSetup
docker-compose.ymland.envfile:cp docker-compose.yml.template docker-compose.yml cp .env.template .envGet the genesis URL, which will be generated (uploaded) during the upgrade process by validators.
Setup
.envfile according to the chain parameter:LIKECOIN_DOCKER_IMAGE:"likecoin/likecoin-chain:fotan-1"LIKECOIN_CHAIN_ID:"likecoin-mainnet-2"LIKECOIN_UID: normally keep it as"1000"is fine, but if you are using root user under Linux (e.g. in some VPS) then you should change it to"0".LIKECOIN_MONIKER: the original moniker (in.liked/config/config.toml, search formoniker). If not sure, any name indicating your node is OK.LIKECOIN_GENESIS_URL:https://gist.githubusercontent.com/williamchong/de1bdf2b2a8f3bce50a4b5e46af26959/raw/4e21bff586771c849d22e1916bcb88c6463fbaa0/genesis.jsonLIKECOIN_SEED_NODES:[email protected]:26656,[email protected]:26656
Backup the original node if you have one:
mv .liked .liked.bakInitialize the node with new software:
docker-compose run --rm initRe-import the keys and address books from the old node if you have one:
cp \ .liked.bak/config/node_key.json \ .liked.bak/config/priv_validator_key.json \ .liked.bak/config/addrbook.json \ .liked/configStart up the node:
docker-compose up -dWait for synchronization, which you may check by going to http://localhost:26657/status and see
result.sync_info.catching_up. If it showsfalsethen the node has caught up.If you have keystore, you may migrate the keys by running the following command:
docker-compose run liked-command keys migrate /host/.likecli
Last updated