Transaction pinning: blocking a fee bump to cheat a Lightning channel
What it is
Transaction pinning is when an attacker exploits limits in mempool relay policy to stop an incentive-compatible transaction from being accepted or fee-bumped. BIP 431's TRUC rules (also called version 3 transaction relay) were designed to make pinning harder for contract protocols such as Lightning, where parties sign time-sensitive transactions to broadcast later.1: open 4 sources
DefinitionResearcherEstablishedHigh confidence
malicious actors may sometimes exploit limitations to prevent incentive-compatible transactions
Motivation, read 2026-11-20
Still in bip-0431.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
Pinning is consequential to contracting protocols in which untrusted parties construct and sign time-sensitive transactions to be broadcast on-chain later
Motivation, contracting protocols, read 2026-11-20
Still in bip-0431.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
T2Bitcoin Optech topic, Version 3 transaction relayBitcoin Optech, supports part of it
Combined with package relay, these policies help enable the use of dynamic feerates with LN onchain transactions.
Topic summary, read 2026-11-20
T2Bitcoin Optech topic, Version 3 transaction relayBitcoin Optech, says this directly
designed to prevent pinning attacks.
Topic summary, read 2026-11-20
Checked at block 977,628, 26 Nov 2026, 04:29 UTC: recheck, quotes 4/4History, hash and citation
What defends against it
BIP 431 defines TRUC (Topologically Restricted Until Confirmation) transactions: a transaction with version 3 opts into rules that, while it is unconfirmed, allow at most one unconfirmed parent or child, cap its size at 10,000 vB, and cap a TRUC child of an unconfirmed TRUC parent at 1,000 vB.2: open 3 sources
FactBuilderEstablishedHigh confidence
An unconfirmed TRUC transaction cannot have more than 1 unconfirmed descendant.
Specification, rule 3, read 2026-11-20
Still in bip-0431.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
A TRUC transaction cannot have a sigop-adjusted virtual size larger than 10,000 vB.
Specification, rule 4, read 2026-11-20
Still in bip-0431.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
T1Bitcoin Core src/policy/truc_policy.hSource code, says this directly
inline constexpr int64_t TRUC_CHILD_MAX_VSIZE{1000};
TRUC_CHILD_MAX_VSIZE, read 2026-11-20
Still in src/policy/truc_policy.h at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
bitcoin/bitcoin at f498a5a671 contains this text in src/policy/truc_policy.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/policy/truc_policy.h | grep -nF 'inline constexpr int64_t TRUC_MAX_VSIZE{10'"'"'000};'bitcoin/bitcoin at f498a5a671 contains this text in src/policy/truc_policy.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/policy/truc_policy.h | grep -nF 'inline constexpr int64_t TRUC_CHILD_MAX_VSIZE{1000};'BIP 431's Title is "Topology Restrictions for Pinning" on the default branch.
Run it yourself
curl -s https://raw.githubusercontent.com/bitcoin/bips/master/bip-0431.mediawiki | grep -m1 -E '^ *Titles?:'Checked at block 977,628, 26 Nov 2026, 04:29 UTC: recheck, quotes 3/3, code 3/3History, hash and citation
Since Bitcoin Core 28.0, a node that receives a transaction paying too low a fee rate for its mempool can pair it with a child transaction and evaluate both as a package (1-parent-1-child package relay), so a child can pay for a parent that would otherwise be rejected. The release notes call this feature limited and not yet reliable under adversarial conditions.3: open 4 sources
How it worksBuilderEstablishedHigh confidence
T1Bitcoin Core 28.0 release notesRelease notes, says this directly
Transactions having a feerate that is too low will be opportunistically paired with
P2P and network changes, package relay (#28970), read 2026-11-20
Still in doc/release-notes/release-notes-28.0.md at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
T1Bitcoin Core 28.0 release notesRelease notes, says this directly
Warning: this P2P feature is limited (unlike the `submitpackage` interface, a child with multiple unconfirmed parents is not supported) and not yet reliable under adversarial conditions.
P2P and network changes, package relay (#28970), warning, read 2026-11-20
Still in doc/release-notes/release-notes-28.0.md at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
T2Bitcoin Optech topic, Package relayBitcoin Optech, supports part of it
Package relay is a proposed feature for Bitcoin relay nodes that would allow them to send and receive packages
Topic summary, read 2026-11-20
T1Bitcoin Core 30.0 release notesRelease notes, supports part of it
Opportunistic 1-parent-1-child package relay has been improved to handle
P2P, 1p1c improvement (#31385), read 2026-11-20
Still in doc/release-notes/release-notes-30.0.md at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
Checked at block 977,628, 26 Nov 2026, 04:29 UTC: recheck, quotes 4/4History, hash and citation
Bitcoin Core 31.0 removed the CPFP carve-out, which had let one extra small child join a package already at its descendant limit. The release notes say contract protocols needing similar behavior are expected to use TRUC transactions and sibling eviction instead.4: open 2 sources
EventResearcherEstablishedMedium confidence
T1Bitcoin Core 31.0 release notesRelease notes, says this directly
The CPFP carveout allowed one additional child transaction to be added to a package that's already at its
Mempool, CPFP carveout, read 2026-11-20
Still in doc/release-notes/release-notes-31.0.md at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
T1Bitcoin Core 31.0 release notesRelease notes, says this directly
It is expected that smart contracting use-cases requiring similar functionality employ TRUC transactions
Mempool, CPFP carveout, read 2026-11-20
Still in doc/release-notes/release-notes-31.0.md at the head of bitcoin/bitcoin (0e8f70a863), read 26 Nov 2026.
Checked at block 977,463, 25 Nov 2026, 04:23 UTC: recheck, quotes 2/2History, hash and citation
As of 20 November 2026, BOLT 9 in the lightning/bolts repository assigns feature bits 40/41 to zero_fee_commitments, a Lightning channel type whose commitment and HTLC transactions pay zero fees, and points to BOLT 3's shared anchor output for it.5: open 1 source
FactResearcherEstablishedHigh confidence
Zero-fee commitment and HTLC transactions
Feature table, zero_fee_commitments (bits 40/41), read 2026-11-20
Still in 09-features.md at the head of lightning/bolts (191462825a), read 26 Nov 2026.
lightning/bolts at 191462825a contains this text in 09-features.md, and still does on the default branch.
Run it yourself
git clone https://github.com/lightning/bolts && git -C bolts show 191462825ae341f0a27098765c075f01ca9bc6c2:09-features.md | grep -nF 'Zero-fee commitment and HTLC transactions'lightning/bolts at 191462825a contains this text in 09-features.md.
Run it yourself
git clone https://github.com/lightning/bolts && git -C bolts show 191462825ae341f0a27098765c075f01ca9bc6c2:09-features.md | grep -nF '[BOLT #3][bolt03-shared-anchor]'Checked at block 977,463, 25 Nov 2026, 04:23 UTC: recheck, quotes 1/1, code 2/2History, hash and citation
In BOLT 3's anchor commitment format (feature option_anchors, bits 22/23 in BOLT 9), each anchor output on a Lightning commitment transaction is fixed at 330 sats, which BOLT 3 gives as the default dust limit for P2WSH outputs.6: open 2 sources
FactBuilderEstablishedHigh confidence
The amount of the output is fixed at 330 sats, the default dust limit for P2WSH.
Commitment Transaction Outputs, to_local_anchor and to_remote_anchor, read 2026-11-20
Still in 03-transactions.md at the head of lightning/bolts (191462825a), read 26 Nov 2026.
Anchor commitment type with zero fee HTLC transactions
Feature table, option_anchors (bits 22/23), read 2026-11-20
Still in 09-features.md at the head of lightning/bolts (191462825a), read 26 Nov 2026.
lightning/bolts at 191462825a contains this text in 03-transactions.md, and still does on the default branch.
Run it yourself
git clone https://github.com/lightning/bolts && git -C bolts show 191462825ae341f0a27098765c075f01ca9bc6c2:03-transactions.md | grep -nF 'The amount of the output is fixed at 330 sats, the default dust limit for P2WSH.'Checked at block 977,320, 24 Nov 2026, 04:21 UTC: recheck, quotes 2/2, code 1/1History, hash and citation
What the lab tests
8 testsBitcoin Core's own tests, run on a private test network against the newest release of each major version Bitcoin Core maintains, newest first. An older release runs the tests it has. The LND rows are LND's own unit tests, one Go package each, built from the source of its newest release once the release's signed manifest checks out. The LDK rows are LDK's own tests, one module of its lightning crate each, built from its newest release once the release tag's signature checks out. See each release's run.
| Test | Bitcoin Core 32.123 Nov 2026 | Bitcoin Core 31.323 Nov 2026 | Bitcoin Core 30.523 Nov 2026 |
|---|---|---|---|
mempool_ | Passed | Passed | Passed |
mempool_ | Passed | Passed | Passed |
p2p_ | Passed | Passed | Passed |
p2p_ | Passed | Passed | Passed |
mempool_ | Passed | Passed | Passed |
| Package | LND 0.21.8-beta23 Nov 2026 |
|---|---|
LND contractcourt | Passed |
| Module | LDK 0.2.824 Nov 2026 |
|---|---|
LDK chain/ | Passed |
LDK ln/ | Passed |
Public record
- Optech: transaction pinningbitcoinops.org
- Optech: TRUC transactionsbitcoinops.org