Comment on page
Binaries - Upgrading Your Node
- 1.Ensure you have stopped the node❗
With Daemon
With PID
sudo systemctl stop fxcored
ps -ef | grep fxcored
kill -9 <PID>
2. Get the latest
fxcored
binaryPulling the latest fx-core code base (ensure that you are in the fx-core folder):
git pull
Checkout the branch of the upgrade version:
git checkout <upgradeable version branch>
for example:
git checkout release/v5.0.x
or
git checkout tags/v5.0.0
Update fxcored (ensure that you are in the fx-core folder):
make install
fxcored version
3. Update config files
fxcored config update
4. Restart the node:
sudo systemctl restart fxcored
5. Check whether the node is participating in consensus:
cat $HOME/.fxcore/data/priv_validator_state.json
It should return something similar to the following:
{
"height": "347450",
"round": 0,
"step": 3,
"signature": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"signbytes": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}