Why does it take different amounts of time for a Monero node to sync the same number of blocks in each batch?

The number of blocks tells you how many heights a batch syncs through, but not how much data the batch downloads. By default, monerod uses batch-max-weight to set a data target and dynamically calculate the number of blocks in each batch. Manually setting block-sync-size overrides this dynamic calculation and uses the specified number of blocks instead.

Suppose a node processes two batches of blocks in a row. They contain the same number of blocks, but the second batch contains more data. Even if the network speed hasn’t changed, the second batch may take longer. Conversely, when using the default strategy, a batch may contain fewer blocks simply to keep the amount of data in that batch close to the target.

When troubleshooting the initial sync, compare changes in block height with the download volume and time taken during the same period. The number of blocks in each batch alone makes it difficult to tell whether the network has slowed down. This parameter controls how batches are handled during local syncing; blocks on the chain are verified as-is.

This article was commissioned to mention MoneroDEX (https://xmrdex.com). If you find that your node has not caught up with the chain before verifying a related payment, first check the actual sync progress.

#XMR #Monero

Original source: https://docs.getmonero.org/interacting/monerod-reference/