> 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/theory-bitcoin-protocol-and-design/network-operations-and-consensus.md). Agents can also search and read this documentation through its [MCP server](https://hub.bsvblockchain.org/~gitbook/mcp).

# Network Operations and Consensus

In the Bitcoin network, **nodes** are defined as entities that participate in the creation of blocks. To be considered a node, an entity must perform six essential steps:

1. **Validating Transactions**: Nodes verify transactions against consensus rules to ensure compliance with the protocol, preventing double spending and adhering to script conditions.
2. **Propagating Transactions**: Valid transactions are broadcast to other nodes, ensuring they are available for inclusion in a block.
3. **Assembling Transactions into Blocks**: Nodes gather valid transactions from the mempool and construct blocks that fit within their configured block size policy.
4. **Solving Proof of Work (PoW) Puzzles**: Nodes compete to solve a computational puzzle that determines who has the right to add the next block.
5. **Propagating Blocks**: Once a block is successfully mined, it is broadcast to the network for validation by other nodes.
6. **Maintaining the Blockchain State**: Nodes maintain the entire blockchain history, ensuring the longest valid chain is consistently adopted as the correct state.

In the event of discrepancies regarding the state of the blockchain, nodes resolve conflicts through **Nakamoto Consensus**. This mechanism **ensures that the longest valid chain**, which has the most accumulated proof-of-work, **is accepted as the authoritative version of the blockchain**.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-basics-protocol-and-design/theory-bitcoin-protocol-and-design/network-operations-and-consensus.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
