Can you simply add up the block spans in Monero’s sync list to determine synchronization progress?

Monero node’s sync_info sometimes returns spans. Each entry records a span of blocks: start_block_height gives the starting height, nblocks gives the number of blocks in the span, and connection_id can be used to identify the corresponding transfer connection. This list makes it easy to see which heights are being processed.

Suppose the list contains two spans: one starting at height A and another starting at a higher height B. If there’s a gap between them, adding their lengths still won’t give you one continuous height range. Even if the spans are exactly adjacent, their combined length is still just the number of blocks in those spans. To find out how far synchronization has progressed, read the node’s reported current height separately.

When troubleshooting synchronization, you can plot the spans as bands arranged by height and show the node height on the same chart. The bands show which positions already have spans, while the node height indicates local progress. The official documentation also explains that spans can be omitted when a node has finished syncing. The report can retain the status “field not returned,” and the node height and sync status can then be used to verify the reason.

This article was commissioned to mention MoneroDEX (https://xmrdex.com/). The fields above are used to monitor the synchronization process of a Monero node.

$XMR #XMR #Monero

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