Research·Mining

Who Chooses the Transactions in a Block

A mining pool does not merely organise payouts. Under the protocol that almost all hash rate still speaks, the pool builds the block template and the machines hash whatever header they are handed. Transaction selection and hash rate are separate powers, bundled by a protocol decision rather than by anything in Bitcoin.

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

Published hash rate charts name pools, and that naming is usually read as “these companies have this much mining power.” It is more accurate and more alarming than that. A pool with ten per cent of hash rate decides the contents of roughly ten per cent of blocks, using machines it does not own, electricity it does not pay for, and capital it did not raise.

The people who own the hardware have no say in what confirms. That is not a property of Bitcoin. It is a property of the protocol the hardware uses to talk to the pool, and there is a replacement for it.

What does a pool actually send a miner?

A header to hash, and nothing it can inspect.

Under Stratum V1 the pool builds the template: it selects the transactions, computes the Merkle branches, and constructs the coinbase transaction paying itself. What goes to the machines is the header material plus the branch needed to reconstruct the Merkle root. The machine iterates a nonce, and when it finds a hash below the share target, it submits that.

The pool’s other job — smoothing the variance so that a farm earns a predictable daily amount instead of waiting months for a block — is the service miners are actually buying, and it is a real one. Nothing about measuring work and distributing rewards requires also choosing the transactions. The two arrived together because the protocol that delivered the first had no way to express the second.

The machine never sees the transaction list. It could not evaluate it if it did; an ASIC is not a validator. So the division of labour is total: capital and electricity on one side, editorial control on the other, and the protocol provides no way to hold one without granting the other.

This is also why the usual reassurance — that miners would switch pools if a pool misbehaved — is weaker than it sounds. Switching is possible and does happen, but it requires noticing, and the thing to notice is a negative: a transaction that was not included. Absence is the hardest thing to observe on a network where the same transaction will probably be mined by someone else within the hour.

Worth stating plainly, because it is often confused: this is not a claim that pools are attacking Bitcoin. It is a claim about where a capability sits. A pool that has never filtered a transaction still holds the ability to, and the holders of the hardware have no way to withhold it short of leaving. Capabilities concentrate quietly and get used under pressure, which is why the interesting question is not what pools do but what they could be made to do.

Why does the pool’s choice matter?

Because censorship at the template is the cheapest attack on Bitcoin that does not require buying any hardware.

Concentration is the background fact. Industry surveys put a large majority of hash rate across a handful of pools, and the two largest have at times accounted for more than half the blocks found. Whether that is dangerous depends entirely on what a pool can do with the position, and template control is the answer: it can decline to include transactions.

This has been tested in public more than once. A listed mining company filtered transactions against a sanctions list in 2021, produced blocks it described as compliant, and abandoned the policy within weeks after the reaction. At least one pool has since run a template policy excluding transactions it considered spam. In both cases the filtered transactions were confirmed shortly afterwards by other pools, which is the system working — and also the measure of how little a minority filter achieves and how much a majority one would.

The adjacent risk is a 51% attack assembled without capital. The economics of mining price such an attack as unaffordable, because the attacker is assumed to need the hardware. An attacker who controls pools rather than machines directs other people’s hash rate instead, and the owners of that hardware would not necessarily know what their shares were being used for.

What does Stratum V2 change?

It splits one protocol into three, so that a miner can build its own template and still pool the variance.

The specification defines three sub-protocols. The Mining Protocol replaces V1 and carries jobs and shares. The Template Distribution Protocol gets templates from a Template Provider — in practice a full node — replacing getblocktemplate with something efficient enough to implement on the mining side. The Job Declaration Protocol is the consequential one: a farm declares to the pool that it intends to mine a template it built itself, and the pool accepts shares against it.

The declaration is per-farm rather than per-machine, which is what makes it practical: one declaration serves hundreds of thousands of devices, and the pool can run declaration traffic on separate infrastructure from share submission. The spec defines a full-template mode, where the whole template is declared to the pool, and a lighter coinbase-only mode where only the payout arrangement is negotiated.

What the pool keeps is the financial service — smoothing variance, measuring work, paying out — and the ability to verify that the work submitted is for a valid block. What it loses is the power to decide what that block contains. The two things the industry has always treated as one product turn out to be separable, and the only reason they were bundled was that V1 had no mechanism to unbundle them.

Upstream support has been moving in the same direction. Bitcoin Core now exposes a block-template interface over IPC — a BlockTemplate object with the coinbase fields and the Merkle path to it — designed for exactly this kind of external consumer rather than for the JSON-RPC call it replaces.

Why is the protocol encrypted?

Because V1 is plaintext, and plaintext mining traffic is both an information leak and an attack surface.

Stratum V2 requires an authenticated-encryption handshake based on the Noise framework for any connection leaving the local network — optional between a machine and a proxy in the same building, mandatory to a pool. The spec gives two reasons, and the first is privacy: share submissions convert directly into an estimate of a miner’s hash rate and earnings, tied to an identifiable account. A network operator sitting between a farm and its pool learns the farm’s revenue.

The second is control. An unencrypted, unauthenticated connection can be redirected, and hash rate has been stolen this way — an intermediary points a farm’s shares at a different pool and collects the proceeds. The handshake makes the upstream party cryptographically identified, which closes it.

There is a quieter benefit in the framing. V2 is binary rather than line-delimited JSON, which cuts bandwidth and latency enough to matter at farm scale, and lower latency means fewer stale shares. For an operator deciding whether to migrate, this is often the argument that actually lands, with the governance improvement arriving as a side effect.

Why has adoption been slow?

Because the people who would have to deploy it are the people it takes power from, and the people it benefits are not the ones who pay for it.

A pool gains nothing from supporting job declaration. It takes on engineering work, new infrastructure, and the loss of a capability it currently holds for free, in exchange for a benefit that accrues to the network. The miners who would use it are mostly large farms with their own operations teams, and their incentive is revenue, which job declaration does not change. Lower latency and encryption are real selling points; the right to choose transactions is not one anybody is paid for.

Running a template provider also means running a full node next to the farm, kept current, with the operational responsibility that implies. For a farm whose business is converting electricity into hashes, that is a new category of work.

So the deployment pattern is partial and uneven: encryption and efficiency first, declaration later or not at all. A miner evaluating pools today is choosing, among fee schedules and payout schemes, whether their machines add to somebody else’s ability to decide what confirms — and most pool comparison pages do not list that row.

Check it yourself

If you mine, the question to put to a pool is specific enough to answer in one line: does it support the Job Declaration Protocol, and in which mode. “We support Stratum V2” frequently means the Mining Protocol and the encryption only, which is an improvement that leaves template control exactly where it was.

From the outside, the coinbase is the place to look. Every block names its producer in the coinbase input, so the distribution of blocks across pools is directly measurable from the chain rather than from a published chart:

bitcoin-cli getblock <hash> 2 | head -40

The first transaction’s input script carries whatever tag the pool chose to write. Nothing obliges a pool to write one, which is worth remembering before treating any market-share figure as a measurement.

What remains uncertain

Whether declaration reaches the pools that matter. The protocol works and is implemented; the question is deployment at the pools holding most of the hash rate, and their incentive is negative. Nothing in the design solves that, and no mechanism exists to make a pool offer a feature its customers do not price.

How many miners would use it if offered. A farm that can declare its own templates has to decide what goes in them, which means a policy, which means exposure. It is possible that given the choice, most operators would take the pool’s template precisely because it is somebody else’s decision. That has not been tested at scale.

How much template control actually constrains. Pools are also the point where payout, identity and jurisdiction concentrate, and unbundling the template leaves all of that intact. A pool that must identify its customers still shapes who can mine, which is a different lever on the same network and one this protocol does not touch.

Sources

Nearby