Inside data/testnet/config.ini, you'll find a number of configurations to set. You'll need to set the the rpc_endpoint which opens a websocket port to connect your wallet to.
You can find the available versions from our github releases.
This script automatically stops your node, fetch new binary, restart it.T
Troubleshooting
Sometimes you may have received blocks that you processed with an older version of the witness_node. In those situations you have to replay the blockchain (eg. replay the block stored on your machine). Other times, this will not work, and you have resync the entire blockchain from the network.
Make sure your systemd configuration have --replay-blockchain. This ensures that when you restart the service, it will do it.
To resync, you can delete the data/blockchain directory that stores the blocks. Then start the service back up again, which detects a blank directory and retrieves from the network again.
#!/bin/sh
if [ -z "$1" ]
then
echo "No version provided"
exit
fi
service bitshares stop
wget -O witness_node.gz https://github.com/quantadex/quanta-core/releases/download/$1/witness_node.linux.amd64.gz
mv -f witness_node witness_node.bak
gunzip witness_node.gz
chmod +x witness_node
service bitshares start