Research·Protocol

The Difference Between a Rule and a Policy

A consensus rule decides whether a block is valid, and every node must agree or the network splits. A policy decides what one node will accept into its own mempool and relay onward, and nodes may disagree freely. Nearly every argument about spam, replacement and filtering is really an argument about which of the two is in play.

Level
Advanced
Reading
8 min
Published
2026-11-24
Reviewed
2026-11-24

The most common confusion in Bitcoin discussion is between two kinds of rule that look the same from a user’s chair. Your transaction was rejected; whether it was rejected because it is invalid or because your node declined to forward it are completely different facts with completely different consequences, and the software does not always make the difference obvious.

What is the actual distinction?

Consensus binds everyone. Policy binds one node, and only until it changes its mind.

A consensus rule determines block validity. If your node and mine disagree about one, we follow different chains — so these rules can only change by coordinated upgrade, and getting one wrong splits the network. Signature validity, the subsidy schedule, the four-million-weight limit, the prohibition on spending the same output twice: all consensus.

A policy determines what a node accepts into its mempool and relays to peers. It is configurable, it varies between implementations and versions, and no disagreement about it can split the chain. The minimum relay fee rate, the maximum standard transaction size, which output scripts count as standard, how many unconfirmed descendants a transaction may have: all policy.

The asymmetry that matters: a transaction rejected by policy can still be mined. If it reaches a miner by any route and breaks no consensus rule, the block containing it is valid and every node accepts it, including the nodes that refused to relay it.

What does standardness actually forbid?

A long list of things that are valid and that your node will not pass on.

The constants live in one header and are worth seeing as a group. A standard transaction weighs at most 400,000 weight units — a tenth of a block, though a block may legally contain one far larger. Its non-witness portion must be at least 65 bytes, “one larger than 64”, which is the Merkle tree flaw being held off at the policy layer because the consensus fix has not activated. Witness stack items in standard scripts are capped at 80 bytes each, a standard witness script at 3,600 bytes, a scriptSig at 1,650.

Outputs below a dust threshold derived from a 3,000 satoshi-per-kilobyte rate are non-standard. Unknown output script types are non-standard, which is not an oversight: it reserves the space in which a future soft fork can define meaning, because anything nodes relay today becomes something a future rule must avoid breaking.

Notice what these have in common. None is about morality or use case. They are resource limits, upgrade reservations, and defences against transactions that are cheap to make and expensive to handle.

The limits on how transactions may relate to one another belong in the same group. A node caps how many unconfirmed ancestors and descendants a transaction may have, and how large a connected cluster of unconfirmed transactions may grow, because evaluating a replacement means evaluating everything it would displace. Without a bound, a single replacement decision could require arbitrary work, and an attacker would construct exactly the arbitrarily deep chain that makes it expensive.

Why would a node refuse a valid transaction?

Three reasons, and only one of them is ever contentious.

Denial of service. A transaction can be legal and pathological — huge, or requiring enormous validation work for a small fee. Relaying it costs every node on the network bandwidth and CPU for which nobody pays. Policy is how a node declines to subsidise that.

Upgrade safety. Keeping unused constructions non-standard means a soft fork can later assign them meaning without invalidating transactions already circulating. The restraint is deliberate and it is why Bitcoin can still change at all.

Preference about use. This is the contested one — the datacarrier limit, filters against particular transaction types — and it is contested because it is the only category where policy is being used to express a view rather than to protect a resource. The practical objection is not philosophical: a preference the targeted party can route around by paying a miner directly is not a defence, and the attempt leaves the rest of the network with a worse view of what is about to be mined.

Is replace-by-fee a rule or a policy?

A policy, which is exactly why its history is so confused.

Nothing in consensus forbids two transactions spending the same output from existing; only one can confirm, and a miner picks. Everything else about replacement — whether a node accepts a conflicting transaction, whether the original had to signal replaceability, how much more the replacement must pay — is policy, and it has changed more than once. The fight over replace-by-fee follows the most recent of those changes from an option to a default to a rule nobody can opt out of.

BIP 125 described an opt-in scheme: a transaction signalled replaceability by setting a sequence number below the maximum, and nodes refused to replace one that had not. Merchants accepting unconfirmed payments relied on that refusal. Recent Bitcoin Core releases accept replacements regardless of signalling, on the reasoning that the refusal was never a guarantee — a miner always had the option, and a few did.

So a behaviour many people treated as a rule for years was a default, and when the default changed, the businesses depending on it discovered what they had actually been relying on. That is the lesson of this distinction in one example: policy is real, it shapes what happens, and it is not a promise.

What happens when policy and mining diverge?

The mempool stops predicting blocks, and that is worse than it sounds.

Everything downstream of the mempool assumes it resembles the next block. Fee estimation reads it. Wallets decide whether a payment is likely to confirm. Layer-two protocols assume a transaction they broadcast will reach miners. If a meaningful share of what gets mined never passed through public relay, all of that degrades at once.

It also creates a market for access. If the normal path does not work, transactions go directly to pools, and direct submission favours whoever has a relationship with a pool. A network where getting confirmed reliably means knowing someone is centralised in the way that actually matters, regardless of how many nodes exist.

This is the strongest argument against using policy to express preferences, and it is an argument from consequences rather than from principle. The filters do not prevent the behaviour; they relocate it somewhere less observable and more exclusive.

What is TRUC, and why does Lightning need it?

A policy that restricts topology to make fee-bumping reliable — the clearest example of policy doing real work.

The problem is pinning. A protocol like Lightning depends on being able to confirm a pre-signed transaction quickly when something goes wrong, usually by attaching a fee-bumping child. An adversary can prevent that by attaching their own enormous, low-fee descendants first: the package becomes expensive to replace under the replacement rules, and the honest party cannot get their transaction mined inside the window the timelock allows. The attack uses no invalid transaction at all. It uses the mempool’s own descendant limits against you.

TRUC — transactions signalling version 3, specified in BIP 431 — opts into a stricter regime. A TRUC transaction may have at most one unconfirmed ancestor and one unconfirmed descendant, must be at most 10,000 virtual bytes, and a child spending an unconfirmed TRUC parent is limited to 1,000 virtual bytes. The result is that the only thing anyone can attach is a small child, which is cheap to replace, so the fee bump always works.

Two things are worth noticing. Opting in costs flexibility, and applications that need long unconfirmed chains cannot use it. And the entire mechanism is policy: nothing here is a consensus rule, a miner may ignore all of it, and the protection holds because enough of the network runs the same defaults.

Check it yourself

Your node will tell you why it refused something, and the vocabulary distinguishes the two cases:

bitcoin-cli testmempoolaccept '["<rawtx>"]'

A rejection reason beginning non-mandatory-script-verify-flag or naming a standardness condition is policy. One like bad-txns-inputs-missingorspent is consensus. The first means “not from me”; the second means “not ever”.

The relay floor and the mempool’s current minimum are both visible:

bitcoin-cli getmempoolinfo

minrelaytxfee is your node’s configured floor. mempoolminfee is what it has risen to under load. Neither is a rule about validity, and both decide whether your transaction goes anywhere.

What remains uncertain

How much divergence already exists. Several node implementations ship different defaults, and some pools run their own template policies. Nobody publishes a measurement of what fraction of mined transactions never appeared in a typical public mempool, and without it the argument about filtering is conducted on anecdote.

Whether policy can carry protocol guarantees. TRUC gives Lightning something close to a guarantee, built out of defaults that any node may disable. That works while the defaults hold and it is a weaker foundation than a consensus rule. Whether layer-two protocols should depend on it is an open design question with real money on the answer.

Where the line should sit. The resource-protection case for policy is settled. The expressive case is not, and each round of the argument — data carriage, replacement signalling, filters — gets conducted as though it were the first. A shared principle for deciding would be worth more than winning any particular instance.

Sources

Nearby