The synchronization target on my Monero node changed to 0. Is it starting over?

If you see the synchronization target, target_height, change to 0, first check which interface this field comes from. The Monero node’s sync_info documentation clearly states that the target height field is set to 0 when synchronization is complete. Here, 0 indicates a status: there is no target currently being pursued.

The same sync_info response also includes height, which you can use to check the node’s current height. Suppose the monitoring showed that the local height was increasing and the target height had a value; in the next moment, the local height remains in the same range while the target drops to zero. This is consistent with the node having caught up with its synchronization target. You can cross-check this using the synchronized field in get_info. If the local height also drops unexpectedly, or the synchronization flag indicates that syncing is not complete, check whether you are connected to a different node or have switched networks, then check the logs.

When building a dashboard for a node, don't use the target height directly as the denominator. If the target is 0, direct division cannot produce meaningful progress. First check whether the node is synced, then show the height difference when the target is valid and the node is catching up; this is easier to understand than always showing a percentage. A synced node only indicates the node's status; whether the wallet has finished scanning its own transaction history must be checked separately in the wallet.

Sponsored mention of https://xmrdex.com. When reading the status information on that site or on https://tradexmr.com or https://thorxmr.com, you can also distinguish between node synchronization, wallet scanning, and service order status. This article explains the Monero node interface; it does not use it to report the real-time status of any site.

$XMR #XMR #Monero

Source material: https://docs.getmonero.org/rpc-library/monerod-rpc/#sync_info

https://docs.getmonero.org/rpc-library/monerod-rpc/#get_info