Difficulty Adjustments
Work-based protocols are simply systems for regulating supply-side production functions in response to observable market demand proxies. These protocols periodically set difficulty and block reward values, establishing a desired or expected rate of block production and new supply issuance based on the estimated hashrate demand deduced from the actual observed blocktime over the prior period. This process then continues across each subsequent period.
The mechanism works by adjusting system values such as difficulty for an upcoming period based on the previous period of activity's deviation from some expectation or optimization.
- Difficulty set to achieve certain blocktimes based on existing hashrate
- More than expected miner hashrate deployed
- Faster blocktimes
- Increase in system difficulty
- Harder to mine a block
- Blocktimes slow toward desired rate
The same flow works in the reverse as well, when less than expected miner hashrate is deployed, blocktimes slow, and difficulty must be adjusted downwards.
Changes in hashrate are driven by market demand. Simply put, miners will deploy more when they’re paid more. With this framing, we can see that mining processes and the difficulty adjustment are best understood as a reactive market supply and demand matching function.
Quai Network makes difficulty adjustments on a rolling basis over a previous set of blocks (instead of in sequential periods), to best match the supply of hashrate and demand for network security.