For other full node operators
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.
  1. 1.
    Clone the software if you haven't already have one:
    1
    git clone https://github.com/likecoin/likecoin-chain
    Copied!
  2. 2.
    Switch to the fotan-1 branch:
    1
    git checkout fotan-1
    Copied!
  3. 3.
    Backup docker-compose.yml if you have one:
    1
    cp docker-compose.yml docker-compose.yml.sheungwan
    Copied!
  4. 4.
    Setup docker-compose.yml and .env file:
    1
    cp docker-compose.yml.template docker-compose.yml
    2
    cp .env.template .env
    Copied!
  5. 5.
    Get the genesis URL, which will be generated (uploaded) during the upgrade process by validators.
  6. 6.
    Setup .env file 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 for moniker). If not sure, any name indicating your node is OK.
    • LIKECOIN_GENESIS_URL: https://gist.githubusercontent.com/williamchong/de1bdf2b2a8f3bce50a4b5e46af26959/raw/4e21bff586771c849d22e1916bcb88c6463fbaa0/genesis.json
    • LIKECOIN_SEED_NODES: [email protected]:26656,[email protected]:26656
  7. 7.
    Backup the original node if you have one:
    1
    mv .liked .liked.bak
    Copied!
  8. 8.
    Initialize the node with new software:
    1
    docker-compose run --rm init
    Copied!
  9. 9.
    Re-import the keys and address books from the old node if you have one:
    1
    cp \
    2
    .liked.bak/config/node_key.json \
    3
    .liked.bak/config/priv_validator_key.json \
    4
    .liked.bak/config/addrbook.json \
    5
    .liked/config
    Copied!
  10. 10.
    Start up the node:
    1
    docker-compose up -d
    Copied!
  11. 11.
    Wait for synchronization, which you may check by going to http://localhost:26657/status and see result.sync_info.catching_up . If it shows false then the node has caught up.
  12. 12.
    If you have keystore, you may migrate the keys by running the following command:
    1
    docker-compose run liked-command keys migrate /host/.likecli
    Copied!
Export as PDF
Copy link