# Miner Upgrade Tutorial

After TOP mainnet mapping is launched, existing miners need to upgrade TOPIO in order to continue to obtain revenue.

The upgrade procedure is as follows:

  1. Open the SSH terminal and connect to your cloud host.

  2. Run the following command in the SSH terminal:

    ps -ef |grep topio|grep -v 'grep'|awk '{print $2}'|xargs kill -9
    wget https://github.com/telosprotocol/TOP-chain/releases/download/v1.2.6/topio-1.2.6-release.tar.gz -O topio-1.2.6-release.tar.gz && tar zxvf topio-1.2.6-release.tar.gz && cd topio-1.2.6-release && sudo sh install.sh && topio -v && topio node startnode
    

    The above command contains the following operations:

    • End the old TOPIO process

    • Download and install the latest version of TOPIO

    • Verify whether TOPIO is successfully installed

    • Restart the node process

    In the returned message, if the following content is included, the installation is successful.

    topio version: 1.2.6
    git commit info: b5705a84
    git submodule: xtopcom/xbase:12eecba|xtopcom/xdepends:415349d|xtopcom/xvm:8403432
    build date: Nov 26 2021 09:26:14
    build options: release
    MD5:59910d5fbdbe1a2317dbf55e64c6d0e3
    

    In the returned message, if the following content is included, the node process is started successfully.

    Start node successfully.
    
  3. (Optional) Run the following command to query whether the node has successfully joined the network.

    topio node isJoined
    
    • If it returns "YES", the node has successfully joined the network. It is now in the node candidate pool, waiting for election.
    • If it returns "No", the node has failed to join the network, possibly due to network failure.

    After 1~2 minutes, you can go to TOP Network Block Explorer TOPScan (opens new window) to check the node election information.

  4. (Optional) You can also run the following command to query the miner registration information.

    Add your TOP account address after this command, separated by space.

    topio mining getMinerInfo
    

    The returned results are as follows:

    • If it returns Not elected to any node role., it means that you have registered as an advanced miner, but have not yet been elected as any node.
    • If it returns Elected as auditor, archiver., it means that you have registered as an advanced miner and have been selected as the auditor and archive node.