> For the complete documentation index, see [llms.txt](https://hub.bsvblockchain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-basics-protocol-and-design/coins-and-transactions-bitcoin-protocol-and-design/difficulty-adjustment-mechanism.md).

# Difficulty Adjustment Mechanism

<figure><img src="https://3421145409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRTEKu4E7Fvtss3GI9CYU%2Fuploads%2FgiQ3qym75XMO09Q2I8Sp%2Fadjustment.png?alt=media&amp;token=1c723aa8-5808-4d6c-ab16-3833eb8abf85" alt=""><figcaption></figcaption></figure>

To ensure fairness and consistency in the mining process, the **Difficulty Adjustment Algorithm** plays a pivotal role. This algorithm adjusts the difficulty of the hash puzzle every **block**, based on the total computational power of the network. The primary objectives of this adjustment are twofold:

1. **Resource Contribution and Security**: As more nodes join the network, the difficulty of the puzzle increases, requiring greater computational resources. This ensures that only those nodes that invest significant resources remain competitive, thereby enhancing the overall security of the network.
2. **Predictable Block Times**: The algorithm is designed to maintain an average block production time of **ten minutes**. This predictability is crucial for the stability and reliability of the ledger, allowing users to anticipate when transactions will be confirmed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-basics-protocol-and-design/coins-and-transactions-bitcoin-protocol-and-design/difficulty-adjustment-mechanism.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
