All node and pillar operators should upgrade to
go-zenon v0.0.7. The chain recently forked due to a bug caused by an edge case associated with a sort function.
In order to upgrade follow these instructions:
Select #1 to deploy. This will upgrade
go-zenon to version 0.0.7. After you upgrade run the controller again.
This time select #5 to resync. If you are running a pillar on this node make sure to KEEP the existing producer file. DO NOT replace the producer file. if you want to speed up the sync you can run a cron job every 60 minutes to restart go-zenon.
Note: If you are 100% confident you are on the main chain, you do NOT need to resync. You can check this by comparing a recent hash in your log files with the hash in explorer.zenon.info. If the block and hash match, you do NOT need to resync. You can see recent blocks and hashes in your node by running this command:
journalctl -u go-zenon -n 30 -f
Here are the steps to restart
go-zenon every 60 minutes. Remove this insertion after syncing.
then add this line
0 * * * * /usr/bin/sudo /usr/sbin/service go-zenon restart
A quick breakdown of the cron job:
0 * * * *: This specifies the schedule. The
0indicates the job runs when the minute is 0 (i.e., the top of the hour). The
*symbols indicate that the job runs every hour, day, month, and day of the week.
/usr/bin/sudo: This command allows permitted users to execute a command as the superuser or another user. Since restarting a service typically requires root privileges, we use
/usr/sbin/service go-zenon restart: This is the command that restarts the
- Ensure that the user whose crontab you are editing has permissions in the
/etc/sudoersfile to restart the service without a password. If not, you’d need to configure sudo accordingly, which may present security risks.
- Paths like
/usr/sbin/servicemight differ based on your operating system and configuration. It’s good practice to ensure the paths are correct for your system (you can use
which serviceto get the correct paths).