This guide is prepared for the test network. Different configurations may be required for the Mainnet.
sudo apt-get update
sudo apt-get install python3
mkdir casper-upgrade
cd casper-upgrade
echo "NODE_IP=<node_ip_address>" > .env
- Note: Replace <node_ip_address> with your own node IP address.
wget https://raw.githubusercontent.com/NetworkStake/Casper-AutoUpgrade/main/get_peers.py
python3 get_peers.py
- This command will create a file named peers.json.
wget https://raw.githubusercontent.com/NetworkStake/Casper-AutoUpgrade/main/upgrade.py
python3 upgrade.py
-
This command will check the version of other peers and automatically update if necessary.
-
The upgrade.py file uses the peers.json file to check the versions of other peers. You don't need to update this file manually. The file is automatically updated by get_peers.py.
-
When you follow these steps, the upgrade.py file will check the versions of other peers and automatically update if necessary.