Difficulty consensus
How difficulty adjusts in the network with consensus.
Last updated
How difficulty adjusts in the network with consensus.
Last updated
The difficulty adjustment in the XenBlocks is governed by a protocol managed by X1 validators. These validators ensure network synchronisation, receive and verify XenBlocks, and utilize block timestamps to monitor the block production rate. When deviations occur, nodes calculate a new difficulty level and propose adjustments. A consensus on the new difficulty is reached by averaging the proposals from all nodes, specifically using the median of these adjustments to ensure fairness and mitigate outliers.
Before implementing the new difficulty setting, the network undergoes a verification phase to prevent attacks and errors. Once this phase concludes and consensus is achieved, the updated difficulty is applied across the network. This streamlined process allows the XenBlocks network to adapt efficiently to mining activity changes, maintaining stability and security through collective decision-making.