Upgrade Chain to Mainnet 3.0

Steps to Upgrade the Chain to Mainnet 2.0 if you are using code base

1. Login and switch to the node directory.

cd /usr/local/go/src/github.com/pandoprojects

cp -r pandonet ~/
backup and copy /pandonet folder to a safe location like the home directory

remove the old code base
cd /usr/local/go/src/github.com/pandoprojects
rm -rf /usr/local/go/src/github.com/pandoprojects/pando

Note: Copy the Pandonet folder as a backup copy as we are going to use the key file to run Mainnet 3.0 chain without losing key will lose all you chain identity and assets

2. Take clone of Mainnet 3.0 repo from Github

git clone https://github.com/pandoprojects/pando-network-protocol.git pando 

3. Compilation of the code

cd /usr/local/go/src/github.com/pandoprojects/pando
make install

4. Switch to the pandonet directory

cd ~/pandonet/node

5. Remove another folder except key file(keep key folder very secure to avoid any asset loss)

rm -rf snapshot genesis config.yaml db

6. To download the latest snapshot of mainnet we need to enter the following command

wget https://blockchainupdates.s3.ap-southeast-1.amazonaws.com/snapshot

7. To download the config file of mainnet we need to enter the following command

wget https://blockchainupdates.s3.ap-southeast-1.amazonaws.com/config.yaml

8. Run the code

  • Terminate the running blockchain node in the background process whether it is in tmux, nohup, sceen, pm2 or other.

cd ~/

a place where pandonet folder is stored
  • Run

$GO_PATH/pando start --config=pandonet/node 
or
pando start --config=pandonet/node 

Enter the password and start the node.

For any query feel free to reach out to us on Discord

Last updated

Contact Us:

On Discord

© Copyright 2022 Pandolab Pte Ltd. All rights reserved.