Developers Forum for XinFin XDC Network

Liam
Liam

Posted on

XDC Testnet upgrade 2.0 plan

First Phrase:

Let testnet owner run the following commands
https://github.com/XinFinOrg/XinFin-Node/blob/master/testnet/upgrade.sh

#!/bin/sh
echo "Upgrading XDC Network Configuration Scripts"
cd testnet
cp start-apothem.sh start-apothem.sh.tmp || true
mv .env .env_tmp

git stash
git pull

source .env_tmp
sed -i "s/NODE_NAME=XF_MasterNode/NODE_NAME=$NODE_NAME/" .env
sed -i "s/CONTACT_DETAILS=YOUR_EMAIL_ADDRESS/CONTACT_DETAILS=$CONTACT_DETAILS/" .env
sed -i "s/NODE_TYPE=full/NODE_TYPE=$NODE_TYPE/" .env

bash docker-down.sh
mv xdcchain xdcchain-testnet || true
mv start-apothem.sh.tmp start-apothem.sh || true
bash docker-up.sh
Enter fullscreen mode Exit fullscreen mode

Second Phrase:

  1. Upgrade protocol team change this value to target number and release a new code version https://github.com/XinFinOrg/XDPoSChain/blob/v1.4.8-beta/common/constants/constants.go.testnet#L39
  2. Let other owner upgrade the code again.

Discussion (0)