Skip to content
Basis Desk
Mining & Infrastructure · 6 min read Last reviewed November 29, 2026

How Bitcoin Blocks Are Built: Mempool Policies and Miner Incentives

A guide to the mechanics of Bitcoin block construction, detailing fee-rate selection, package relay algorithms, and the economic incentives that secure transaction processing against censorship.

Editorial oversight: Julian Mercer, Chief Editor
Neutral
How Bitcoin Blocks Are Built: Mempool Policies and Miner Incentives

Key points

  • Miners build blocks by selecting transactions strictly by fee rate (satoshis per virtual byte) rather than total fee value or submission time.
  • Block capacity is constrained by a 4,000,000 weight unit ceiling, making virtual byte efficiency the governing metric of transaction prioritization.
  • Child-Pays-For-Parent (CPFP) allows miners to evaluate parent and child transactions as combined packages to capture elevated aggregate fees.
  • Censorship of valid transactions is economically penalized because non-censoring miners readily capture the fees abandoned by filtering pools.

Live Prediction Odds (Polymarket)

All Crypto Odds →

A Bitcoin block is assembled by miners selecting unconfirmed transactions from a local holding area called a memory pool, or mempool, and packaging them into a cryptographically secured bundle. The selection process prioritizes transactions strictly by economic yield per unit of block space rather than arrival time. Because block capacity is constrained by protocol rules, miners maximize their revenue by using deterministic sorting algorithms that resist censorship and reward efficiency.

Understanding how transactions move from transmission to block inclusion requires examining node relay rules, block capacity constraints, package prioritization, and the incentives governing network participants.

Mempool policies and node autonomy

When a user broadcasts a transaction to the network, it does not instantly reach a miner. The transaction propagates across a peer-to-peer network of independent validation nodes. Each node maintains its own mempool, storing valid transactions that have not yet appeared in a block.

No single global mempool exists. Instead, thousands of individual nodes enforce local policy rules before accepting a transaction into memory and relaying it to adjacent peers. A transaction rejected by one node for violating a non-consensus policy rule may remain entirely valid under core consensus rules. Detailed fundamentals on unconfirmed state transitions can be found in The Bitcoin Mempool: How Unconfirmed Transactions Work.

Standard node client software, such as Bitcoin Core, enforces standardness checks to mitigate denial-of-service vectors. These checks include a minimum fee rate, limits on overall transaction size, and restrictions on complex script formats. If a node's mempool fills to capacity, it begins evicting transactions with the lowest fee rates. Miners run nodes that implement these standard policies by default, meaning that transactions conforming to standard rules propagate freely and reach the mining rigs competing to assemble the next block.

Block weight and fee-rate sorting

Miners construct blocks to collect transaction fees alongside the network's programmatic block subsidy. Block capacity is governed not by raw data size in bytes, but by block weight, introduced in the 2017 Segregated Witness (SegWit) upgrade. The consensus rules cap the maximum weight of a block at 4,000,000 weight units (WU), which corresponds to roughly 1 to 4 megabytes of transaction data depending on the transaction input and signature composition.

To normalize resource consumption, transactions are measured in virtual bytes (vB), where one virtual byte equals four weight units. Because block capacity is fixed, miners do not evaluate absolute fee totals; they evaluate the fee rate, expressed in satoshis per virtual byte (sat/vB). A satoshi is the smallest unit of $BTC, equal to one hundred-millionth of a coin.

To construct an optimal block template, mining software selects unconfirmed transactions in descending order of fee rate until the 4,000,000 WU ceiling is reached. A small, simple transaction paying a total fee of 1,000 satoshis over 100 vB (10 sat/vB) provides twice the economic efficiency of a large transaction paying 2,500 satoshis over 500 vB (5 sat/vB). The miner prioritizes the first transaction because it yields more revenue per unit of consumed weight.

Dependent transactions and CPFP package relay

A transaction cannot confirm before the outputs it spends have been validated. In Bitcoin's unspent transaction output (UTXO) accounting model, this creates parent-child relationships between unconfirmed transactions. If an unconfirmed parent transaction offers an inadequate fee rate, it risks lingering in mempools indefinitely. For a foundational review of input consumption, refer to How a Bitcoin Transaction Works: UTXOs, Mempools, and Finality.

A recipient or sender can accelerate confirmation using Child-Pays-For-Parent (CPFP). Under CPFP, a secondary (child) transaction spends an output of the stalled parent transaction while offering an elevated fee rate.

Because a miner cannot collect the child transaction's fee without including the parent transaction in the exact same block or an earlier one, mining algorithms evaluate the parent and child as a single "package." If the combined fee divided by the combined virtual size yields a competitive package fee rate, the miner includes both transactions simultaneously.

Bitcoin Core implements package relay logic to account for ancestral chains (multiple parents) and descendent trees. Miners iterate through available transaction packages, selecting ancestor packages that deliver the highest aggregate sat/vB return. When a package is included, the remaining transactions in the mempool update their ancestor counts and fee rates dynamically.

Worked example: package fee-rate evaluation

Consider a parent transaction (Transaction A) and its child transaction (Transaction B) under standard block construction assumptions:

  • Transaction A size: 200 vB
  • Transaction A fee: 200 satoshis (Fee rate: 1 sat/vB)
  • Transaction B size: 150 vB
  • Transaction B fee: 3,300 satoshis (Fee rate: 22 sat/vB)

Assume the prevailing competitive market clearing rate for rapid inclusion is 10 sat/vB.

Evaluated alone, Transaction A offers 1 sat/vB, falling far below the threshold; an isolated sorting algorithm would ignore it. Transaction B offers 22 sat/vB, which is well above the threshold, but it cannot be placed in a block without Transaction A.

The miner computes the package fee rate by combining both transactions:

$$\text{Combined Fee} = 200 \text{ sat} + 3,300 \text{ sat} = 3,500 \text{ satoshis}$$ $$\text{Combined Virtual Size} = 200 \text{ vB} + 150 \text{ vB} = 350 \text{ vB}$$ $$\text{Package Fee Rate} = \frac{3,500 \text{ sat}}{350 \text{ vB}} = 10 \text{ sat/vB}$$

Because the combined package yields 10 sat/vB across 350 vB of block space, the miner includes both Transaction A and Transaction B in the block template, securing the combined 3,500-satoshi revenue.

Censorship-resistance and economic alignment

A core design premise of Bitcoin is transaction inclusion without centralized authorization. While miners technically have discretionary power to include or omit any valid transaction, strong economic disincentives discourage selective exclusion or censorship.

First, block templates are compiled independently by different mining operations across multiple global jurisdictions. If a single mining pool elects to filter out specific addresses or transactions—such as addresses subject to sanction lists—it forfeits the transaction fees associated with those inputs. Any miner that subsequently produces a valid block collects those ignored fees. An excluded transaction remains in the mempool until a non-filtering pool finds a block.

Second, sustained censorship requires continuous majority control over global hash rate. If an entity controlling 30 percent of network computing power refuses to process transactions from specific addresses, the remaining 70 percent of miners continue to include them. The censored transaction experiences a probabilistic confirmation delay, but it achieves final settlement as soon as an unconstrained miner solves a block.

Finally, protocol developments such as Stratum V2 decouple the hash power contributed by individual participants from the centralized pool operators who assemble block templates. In legacy pool architectures, the pool operator dictates block construction, as detailed in Solo Bitcoin Mining vs Pool Mining: The Lottery Math Explained. Stratum V2 enables individual hashing contributors to construct their own block templates, democratizing transaction selection and removing single points of regulatory pressure or censorship.

Common misconceptions

  • Miners must process transactions in the order they were submitted. The Bitcoin network possesses no synchronized global clock and no chronological transaction queue. Miners select transactions entirely based on economic yield (sat/vB) and dependency structures, ignoring initial broadcast timestamps.
  • The highest total fee always guarantees fastest inclusion. Absolute fee value is irrelevant to block optimization. A transaction offering 100,000 satoshis across 20,000 vB (5 sat/vB) will be deferred in favor of a transaction offering 2,000 satoshis across 200 vB (10 sat/vB), because the latter consumes space more profitably.
  • Transactions that drop from a node's mempool are cancelled. The mempool is an ephemeral cache on individual machines, not a shared ledger. If a transaction expires or is evicted from one node's mempool due to low fee rates, other network nodes may retain it, and it remains spendable if mined later unless invalidated by a conflicting spend (such as Replace-by-Fee).

How this connects to the market

Block-space pricing directly determines the settlement economics of layer-2 scaling architectures, decentralized finance rails, and institutional settlement layers built on $BTC. As block subsidies halve programmatically every 210,000 blocks, transaction fees constitute an expanding portion of total mining revenue. This economic shift heightens competitive pressure on miners to refine fee-maximization algorithms and adopt advanced mempool clustering software. Market participants must structure balance-sheet operations and consolidation routines around variable block-space demand, using package evaluation mechanisms to maintain cost-predictable finality during periods of elevated volatility.

Questions this story raises

What is the difference between block size and block weight?
Block size measures the raw byte size of all block data, while block weight measures capacity using weight units defined by the SegWit upgrade. Non-witness data accounts for four weight units per byte, whereas witness data accounts for one weight unit per byte. The maximum block weight is fixed at 4,000,000 weight units.
How does Child-Pays-For-Parent differ from Replace-by-Fee?
Replace-by-Fee (RBF) allows a sender to replace an unconfirmed transaction with a higher-fee variant spending the exact same inputs. Child-Pays-For-Parent (CPFP) involves creating an entirely new transaction that spends an unconfirmed output from the original transaction, attaching an elevated fee that incentivizes miners to include both.
Can a miner include an invalid transaction if the fee is high enough?
No. Validating nodes evaluate blocks strictly against consensus rules before relaying or accepting them. If a miner includes an invalid transaction—such as a double spend or invalid cryptographic signature—the entire block is rejected by the network, causing the miner to lose both the block subsidy and all fees.

References

  1. [1] Bitcoin Core Developer Documentation: Mempool and Block Construction — Bitcoin Core Project
  2. [2] Stratum V2 Specification — Stratum Protocol Community

Evergreen explainer written by Basis Desk's system and checked by an independent model pass for factual errors and advice language. Figures, fees and rules change — the references above are where to verify current specifics. Market figures marked "at the time of writing" come from live exchange data. Report an error: corrections@basisdesk.news · corrections policy.

The Daily Brief, in your inbox at 07:00 ET

Five stories, the numbers that moved, what to watch. Three minutes. No hype, no advice, unsubscribe in one click.

Not financial advice. Basis Desk publishes information, not recommendations. Crypto assets are volatile and you can lose what you invest.