CPFP Carve-Out
A mempool policy that reserves room for a second party to fee-bump its own output during a force close.
Basically
CPFP carve-out let you add one small extra transaction to raise the fee on a shared Bitcoin transaction, even after the usual limit was full. It helped the other person in a Lightning payment channel get that transaction confirmed.
Key Takeaways
- CPFP carve-out is a Bitcoin Core mempool policy exception that allows one additional small child transaction beyond the normal descendant limit. It was designed for two-party contract protocols like Lightning Network commitment transactions.
- It prevents transaction pinning attacks where an adversary fills the 25-transaction descendant limit to block the other party from fee-bumping via CPFP.
- The carve-out was removed in Bitcoin Core 31.0 in April 2026. TRUC (v3) transactions and ephemeral anchors replaced it with a more comprehensive solution to the same pinning problem.
What Is CPFP Carve-Out?
CPFP carve-out is a special relay policy rule in Bitcoin Core that grants an exception to the normal transaction descendant limits. Under default mempool policy, any unconfirmed transaction can have at most 25 descendants totalling 101,000 virtual bytes. The carve-out allows a 26th descendant if that child transaction has exactly one unconfirmed ancestor and is no larger than 10,000 virtual bytes.
Matt Corallo proposed the rule in November 2018, and it was merged into Bitcoin Core via PR #15681. It shipped in Bitcoin Core 0.19.0 in November 2019. It is not a consensus rule or a BIP, but purely a mempool relay policy change that nodes can adopt voluntarily.
The carve-out solves a specific problem in the Lightning Network. When two parties share a commitment transaction, both need the ability to fee-bump it after broadcast using Child-Pays-for-Parent (CPFP). Without the carve-out, an adversary could exhaust the descendant limit first and prevent the other party from doing so.
How It Works
Normal descendant limits and their purpose provide the basis for understanding the carve-out. These limits control how many unconfirmed transactions can depend on one another, while the carve-out creates a narrow exception.
Normal Descendant Limits
Bitcoin Core enforces package limits on unconfirmed transactions in the mempool. These limits prevent denial-of-service attacks and limit the computational cost of transaction eviction.
These limits mean that once a transaction has 25 descendants in the mempool, nodes will reject any additional children spending from that transaction's outputs. You cannot add another child after that point unless an exception applies.
The Pinning Attack
Lightning commitment transactions are co-signed by both channel parties in advance. When broadcast, the pre-signed fee may be too low for current network conditions. Both parties need the ability to attach a CPFP child transaction to bump the fee.
The attack uses the normal descendant limit against one of the parties. An adversary fills the 25-transaction descendant limit before the other party can attach a CPFP child.
Transaction pinning is the result of this attack. Because Lightning relies on timelocks, a pinned transaction that fails to confirm in time can result in lost funds.
The Carve-Out Exception
The carve-out adds a narrow exception to the descendant limit. A child transaction is accepted even when the descendant limit has been reached if it has exactly one unconfirmed ancestor and is no larger than 10,000 virtual bytes.
Bitcoin Core's source code defines this as the constant EXTRA_DESCENDANT_TX_SIZE_LIMIT. It sets the limit to 10,000 vB in src/policy/policy.h.
Alice can use this exception in the attack scenario above. She can attach her small CPFP child to her output as the 26th descendant because it meets the carve-out criteria. Her child has only one unconfirmed ancestor, the commitment transaction, and it is under 10,000 vB.
Lightning Anchor Outputs
The carve-out directly enabled the anchor outputs design in Lightning, specified in BOLT PR #688. Under this design, each party can use an anchor output to attach a CPFP child and fee-bump the commitment transaction.
This pattern solved a longstanding problem in Lightning: commitment transactions no longer needed accurate fee prediction at signing time. Either party could adjust the effective feerate at broadcast time through CPFP. For a deeper look at fee-bumping strategies, see Bitcoin Fee Bumping: RBF and CPFP Guide.
Two-Party Contract Protocols
Two-party contract protocols beyond Lightning also benefited from the carve-out. Any protocol with shared pre-signed transactions could use it, including discreet log contracts and atomic swap constructions, which face the same pinning risk when both parties need independent fee-bumping capability.
Limitations of the Carve-Out
The carve-out was an effective but narrow solution with several limitations. It allowed only one additional small child with exactly one unconfirmed ancestor, and it applied only as voluntary mempool relay policy.
Removal in Bitcoin Core 31.0
Bitcoin Core 31.0 removed the carve-out in April 2026 as part of the cluster mempool redesign. The cluster mempool architecture replaces ancestor and descendant limits with cluster-based limits of a maximum of 64 transactions and 101 kvB per cluster. Because the carve-out depends on per-transaction descendant tracking, it is fundamentally incompatible with the cluster-based model.
Replacement by TRUC Transactions and Ephemeral Anchors
TRUC (v3) transactions and ephemeral anchors have superseded the carve-out with a more comprehensive set of solutions. For details on this transition, see Lightning v3 Transactions and Package Relay.
Lightning fee-bumping has progressed from fixed fees at signing time to anchor outputs with the carve-out, and now to TRUC transactions with ephemeral anchors. Each step has reduced the attack surface for transaction pinning while simplifying the protocol. Layer-2 protocols like Spark benefit from these improvements as they build on the same underlying Bitcoin transaction relay infrastructure.
CPFP Carve-Out vs. TRUC Transactions
CPFP carve-out information in this glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.