THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Consensus Rules vs Miner Policy: What Nodes Enforce

permalink THAMER
#bitcoin-consensus#mempool#miner-policy#standardness

Bitcoin uses consensus rules to define which blocks and transactions are valid. Individual nodes also apply local policies for mempool admission and transaction relay. Miners make transaction-selection decisions within the consensus boundary. Confusing these layers leads to misleading claims about censorship, fees, and forks.

Consensus rules define validity

A fully validating node rejects blocks that violate its active consensus rules, regardless of the block's proof of work. Examples include an invalid coinbase reward, an invalid signature, spending a nonexistent UTXO, and exceeding applicable block weight limits. Nodes must agree on these rules to remain on the same valid chain.

Relay policy is a local choice

Bitcoin Core uses policy checks to decide which unconfirmed transactions enter its mempool and which it relays. A transaction may be valid by consensus but rejected from one node's mempool for low feerate, dust, nonstandard form, or local resource limits. Different software versions and node operators may have different policies.

Miners can choose among valid transactions

A miner can include a consensus-valid transaction it obtained privately even if that transaction would not pass a typical public relay policy. It may also omit a high-fee transaction for operational or business reasons. The block still must obey consensus rules. A miner's inclusion choice is not a rule change.

What happens during a disagreement?

If nodes disagree on consensus validity, they may follow different histories. A policy disagreement alone ordinarily affects propagation and mempool contents, not which otherwise-valid block can be accepted. This is why software upgrades involving consensus changes demand more care than ordinary mempool policy changes.

Worked example: dust

A small output may fall below a node's configured dust relay threshold and fail ordinary mempool acceptance. Dust is a relay policy concept, not a universal consensus rule prohibiting all low-value outputs. A miner may still include a consensus-valid transaction with such an output in a block.

Worked example: miner subsidy

If a miner creates a coinbase transaction that claims even one satoshi above the permitted subsidy plus fees, fully validating nodes reject the block. More hashing power does not transform that block into a valid one.

Why developers should care

Applications should not treat successful local transaction construction as guaranteed network propagation. Test consensus validity separately from mempool acceptance, and monitor confirmation instead of assuming relay implies settlement.

Primary references

Bitcoin Developer Guide — Transactions: https://developer.bitcoin.org/devguide/transactions.html
Bitcoin Core policy source: https://github.com/bitcoin/bitcoin/blob/master/src/policy/policy.cpp
Bitcoin Core validation source: https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects