Glossary

Descendant Set

A descendant set is the group of unconfirmed child transactions that depend on a given mempool transaction for confirmation.

Key Takeaways

  • A descendant set includes every unconfirmed transaction in the mempool that directly or indirectly spends outputs from a given transaction: children, grandchildren, and so on.
  • Bitcoin Core enforces a default descendant limit of 25 transactions and 101 kvB of virtual size per transaction to prevent denial-of-service attacks and transaction pinning.
  • The cluster mempool redesign replaces separate ancestor and descendant limits with cluster-based limits, simplifying eviction and fee estimation while removing edge-case workarounds like CPFP carve-out.

What Is a Descendant Set?

A descendant set is the collection of all unconfirmed transactions in the mempool that depend on a specific transaction for their validity. If transaction A creates an output, and transaction B spends that output while still unconfirmed, then B is a descendant of A. If transaction C then spends an output from B, C is also in A's descendant set. The chain continues through any number of generations.

The concept mirrors the ancestor set, which works in the opposite direction: a transaction's ancestors are all the unconfirmed transactions it depends on. Together, ancestor and descendant sets define the dependency graph of unconfirmed transactions. This graph determines which transactions must be included together in a block (ancestors before descendants) and which must be evicted together when a transaction is removed from the mempool.

Descendant sets matter because every operation on a mempool transaction affects its descendants. Confirming a transaction removes it from its children's ancestor sets. Evicting a transaction requires evicting all its descendants too, since they would become invalid without the parent. Replacing a transaction via replace-by-fee (RBF) must account for the cost of displacing every descendant in the set.

How It Works

Bitcoin Core tracks the descendant set for every transaction in the mempool. When a new transaction arrives, the node walks its inputs to identify which existing mempool transactions it spends from, then updates those ancestors' descendant counts and size totals. This bookkeeping enables fast policy checks and efficient block construction.

Descendant Tracking

Each mempool entry stores aggregate statistics about its descendant set: the total count of descendants (including itself), the combined virtual size, and the total fees. These figures are updated incrementally as transactions enter or leave the mempool.

You can inspect a transaction's descendant data using Bitcoin Core's RPC interface:

# Get descendant statistics for a mempool transaction
bitcoin-cli getmempoolentry <txid>

# Response includes:
# "descendantcount": 3,    // this tx + 2 descendants
# "descendantsize": 845,   // combined vsize in vB
# "descendantfees": 12000  // combined fees in satoshis

# List all descendants of a transaction
bitcoin-cli getmempooldescendants <txid>

The getmempooldescendants RPC returns every transaction in the descendant set, optionally with full details for each entry. This is useful for wallet software that needs to understand the full dependency chain before attempting a fee bump.

Default Descendant Limits

Bitcoin Core caps the descendant set at 25 transactions and 101 kvB of combined virtual size by default. These limits, introduced in Bitcoin Core 0.12 (2016), are mempool policy rules, not consensus rules. Any transaction that would push an ancestor's descendant set beyond these bounds is rejected with the error too-long-mempool-chain.

Node operators can adjust these limits with startup flags:

# Increase descendant limits
bitcoind -limitdescendantcount=40 -limitdescendantsize=150

# Check current limits
bitcoin-cli getmempoolinfo

The corresponding ancestor limits (also 25 transactions, 101 kvB by default) work symmetrically: a transaction cannot have more than 25 unconfirmed ancestors in total. Together, these limits bound the computational cost of dependency graph traversals and prevent denial-of-service attacks that exploit deep transaction chains.

Descendant Feerate

Bitcoin Core uses descendant feerate as one of its metrics for mempool eviction. The descendant feerate of a transaction is the total fees of its descendant set divided by the total virtual size of that set. When the mempool fills up and needs to shed low-priority transactions, it considers descendant feerate to avoid evicting transactions that have high-fee children depending on them.

This metric also feeds into fee estimation. A transaction with a low individual feerate but high-fee descendants is more attractive to miners than its standalone feerate suggests, because a miner who includes it can also collect the descendant fees.

Interaction with RBF

When a transaction is replaced via RBF, all of its descendants are evicted from the mempool. The replacement transaction must satisfy several rules related to the descendant set:

  • The replacement must pay an absolute fee at least as high as the combined fees of all original transactions being displaced, including every descendant. This prevents an attacker from replacing a transaction that has high-fee descendants with a lower-fee alternative.
  • The total number of original transactions plus their descendants cannot exceed 100. This caps the computational cost of evaluating a replacement.
  • The replacement must pay a feerate high enough to cover the minimum relay fee for its own size, ensuring the network is compensated for relaying the new transaction.

These rules create a tension: a large descendant set makes replacement expensive, since the replacer must outbid the aggregate fees of every descendant. This dynamic is central to transaction pinning attacks, where an adversary deliberately creates low-feerate descendants to make RBF replacement prohibitively costly for the other party. For a deeper analysis of pinning vectors, see the research article on Bitcoin transaction pinning attacks.

CPFP Carve-Out

The CPFP carve-out is a special exception to the descendant limit, introduced in Bitcoin Core 0.19 specifically to support Lightning Network commitment transactions. It allows one additional descendant beyond the 25-transaction limit, provided that descendant has exactly one unconfirmed ancestor and is no larger than 10,000 virtual bytes.

Lightning commitment transactions have two outputs: one for each channel partner. Without the carve-out, one party could fill the descendant limit with low-feerate children, preventing the other party from using child-pays-for-parent (CPFP) to fee-bump the commitment transaction. The carve-out guarantees that the second output can always be spent regardless of the first party's behavior.

This workaround was necessary because the original descendant limit system had no concept of "fair access" to fee bumping. The newer TRUC (v3) transaction policy and ephemeral anchors provide a cleaner solution by strictly limiting the topology of transaction packages. For more on how these interact, see the research on v3 transactions and package relay.

Cluster Mempool: The New Model

The cluster mempool redesign fundamentally changes how Bitcoin Core manages transaction dependencies. Instead of tracking ancestor and descendant sets separately for each transaction, the new model groups all connected transactions into clusters: sets of transactions where every member is reachable from every other through the dependency graph.

Under cluster mempool, the separate 25-transaction ancestor and descendant limits are replaced by a single cluster size limit. This simplifies the mempool's internal bookkeeping and eliminates several classes of pinning attacks that exploited the asymmetry between ancestor and descendant rules. It also makes the CPFP carve-out unnecessary, since the cluster model inherently handles multi-party fee bumping.

For RBF evaluation, cluster mempool introduces the feerate diagram check: a replacement is accepted only if it produces a strictly better feerate diagram for the affected cluster. This replaces the older rule-based checks and provides a more accurate assessment of whether a replacement actually improves the mempool. For a detailed explanation, see the cluster mempool deep dive.

Use Cases

Fee Bumping with CPFP

The most common use of descendant sets is CPFP fee bumping. When a transaction is stuck with a low feerate, a recipient can create a high-fee child transaction that spends one of its outputs. Miners evaluating this child will include the parent too, since the child cannot be valid without it. The combined feerate of the parent-child package determines whether the pair gets mined.

Wallet software must check the current descendant count before attempting CPFP. If the transaction already has 25 descendants, the CPFP child will be rejected. In that case, the wallet needs to either wait for some descendants to confirm or use RBF on the original transaction instead.

Lightning Channel Management

Lightning Network implementations rely heavily on descendant set behavior for safe channel operations. Anchor outputs on commitment transactions are specifically designed to be spent by CPFP children, adding them to the commitment transaction's descendant set. The descendant limits and the carve-out rule directly affect whether a channel party can get their commitment transaction confirmed in a timely manner during a force close.

Batch Payment Processing

Exchanges and payment processors that use batch transactions sometimes create chains of unconfirmed transactions. A batch transaction paying out to 100 recipients might be followed by consolidation transactions or change-output spends. Each subsequent transaction adds to the original's descendant set, and hitting the limit can block further operations until the chain confirms.

Risks and Considerations

Transaction Pinning

Descendant set rules create a surface for transaction pinning. An adversary who can add descendants to a shared transaction (such as a Lightning commitment transaction or a CoinJoin) can exploit the limits in two ways: filling the descendant count so no more children can be added, or creating large low-feerate descendants that make RBF replacement expensive. Both techniques prevent the victim from fee bumping the transaction.

DoS Protection Tradeoffs

The descendant limits exist to prevent denial-of-service attacks where an attacker floods the mempool with long chains of dependent transactions, forcing nodes to perform expensive graph traversals. But these same limits constrain legitimate users. Applications that create deep transaction chains (such as payment processors making sequential payouts from a single UTXO) can hit the limit and find their transactions rejected.

Policy Divergence

Because descendant limits are policy, not consensus, different nodes can run different settings. A transaction rejected by one node's 25-descendant limit might be accepted by another node configured with a higher limit. This creates inconsistency in transaction propagation and can complicate fee estimation for wallets that cannot predict which policy a given node enforces.

Cluster Mempool Migration

The transition from ancestor/descendant limits to cluster-based limits changes which transactions are accepted and rejected. Some transaction patterns that were valid under the old rules may be rejected under cluster limits, and vice versa. Wallet developers and Lightning implementations need to account for the coexistence of nodes running different mempool models during the transition period.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.