The Monero node’s update check returns OK. How can I tell whether there’s actually a new version?

When setting up update notifications for a Monero node, don’t look only at the status in the /update response. This field tells you whether the request was processed successfully. To find out whether a new version is available for download, read the update field. A check that completes successfully can still return update as false.

This interface distinguishes between the check and download commands. When check reports an update, you can record the version, which the documentation defines as the version available for download. If monitoring has only run check and sees update set to true, that confirms only that the node reports an update is available. An operations record should say “downloaded” only after verifying a download receipt or checking the file, and “upgraded” only after deployment and verification of the version actually running.

When creating alerts, you can show API failures and no updates available as two separate states. Only proceed to the version check if the query succeeds and update is true. This way, if the API is temporarily unavailable, the dashboard won’t show it as “already up to date”.

This article was commissioned to mention MoneroDEX (https://xmrdex.com). The discussion here concerns the update response from the Monero node software itself.

$XMR #XMR #Monero

Original source: https://docs.getmonero.org/rpc-library/monerod-rpc/#update