> 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/bitcoin-protocol-documentation/implementation-notes/policy-vs-consensus.md).

# Policy vs Consensus

A node applies two distinct kinds of check to transactions and blocks:

* **Consensus rules** determine **validity**. Every node enforces them identically, and they are **always** checked. A block is valid or invalid purely on the consensus rules. These are specified in [Consensus Rules](/bitcoin-protocol-documentation/specification/consensus-rules.md).
* **Local policy** is per-node configuration — relay limits, mempool-admission limits, minimum fee, the specific block/transaction sizes a node accepts. Policy affects what a node *relays or mines*, not whether something is valid. A transaction rejected by one node's policy may be perfectly valid and mined by another.

<figure><img src="/files/41wwlgHYrZVzUTq3PCS5" alt=""><figcaption><p>Consensus rules (standard) versus local policy</p></figcaption></figure>

Local policy is checked before a transaction is admitted to a node's mempool or included in a candidate block; consensus rules are checked whenever a transaction or block is validated. Where a limit has both a consensus value and a policy default (block size, for example), only the consensus value bears on validity — the policy default is operator-chosen and out of the validity contract.

## Node components

A node is conventionally described as three functional components. This is an abstraction of the reference implementation, not a protocol requirement — the boundaries are an implementation choice.

<figure><img src="/files/sBjnDlS8Qqnr7bhwTket" alt=""><figcaption><p>Node components</p></figcaption></figure>

* **Node software** — validates transactions, assembles candidate blocks, and validates received blocks against the consensus rules.
* **Mining** — performs the proof-of-work search over candidate headers.
* **Bitcoin Server Network (BSN)** — the peer-to-peer message layer.

How these functions work is described under [Node Operations](/bitcoin-protocol-documentation/implementation-notes/node-operations.md); only the consensus rules the node software enforces are part of the protocol.

## Reference rules list

{% file src="/files/2lBkKug64mxtMM3g1gLc" %}
Reference list of consensus rules and local policies. Not exhaustive; the code is authoritative.
{% endfile %}


---

# 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/bitcoin-protocol-documentation/implementation-notes/policy-vs-consensus.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.
