BitSong
Search…
From v0.8.0 to v0.10.0
This guide is exclusively for Validators and Node Operators, please pay Maximum attention and Perform a backup before upgrading!

Stop of the node

The node will automatically stop at block height 4566000 approximately at 2022-02-08 13:12:07 UTC. The log file will indicate that in order to continue, you must replace the bitsongd binary. At that point you can finish the bitsongd process.
1
sudo systemctl stop bitsongd
2
sudo systemctl disable bitsongd
Copied!

Backup

In the event that the update is unsuccessful, you will need to restore the previous status and install a future patch (example 0.8.1).
In order to perform the backup, you just need to copy the content present on the home directory of go-bitsong, in this case ~/.bitsongd
Remember to have at least 50% free disk space
1
cp -Rv ~/.bitsongd ~/backup_bitsongd_080
Copied!
This operation should take 5/10 minutes, however, in the event that you're using low performance servers, the process might take up to 30/40 minutes.

Install golang 1.17.x

The upgrade to 0.10.0 requires a version of golang-1.17.x
1
wget -q -O - https://git.io/vQhTU | bash -s -- --version 1.17.6
Copied!

Replace bitsongd

First of all we need to make sure we're using the 0.8.0 version
1
bitsongd version
2
# 0.8.0
Copied!
We should get the 0.8.0 version
At this point we have to download and compile the new binary bitsongd 0.10.0
1
cd ~
2
rm -rf go-bitsong # (only in the event that a previous directory is already present)
3
git clone https://github.com/bitsongofficial/go-bitsong.git
4
cd go-bitsong
5
git checkout v0.10.0
6
make install
Copied!
The make install command will compile and install the new binary.
Let's check if the binary was properly updated
1
bitsongd version
2
# 0.10.0
Copied!
If we get the answer 0.10.0 the process was successffully executed and we can proceed to restart the node.

Start bitsongd

1
sudo systemctl enable bitsongd
2
sudo systemctl start bitsongd
Copied!
At this point the node will start performing the update of all the existing modules. Keep into consideration that the operation might take up to 30 minutes.
To view the logs:
1
sudo journalctl -u bitsongd -f
Copied!