The Lightning Network lets users send bitcoin payments through channels that are opened with one on-chain transaction and closed with another, with many payments exchanged off-chain in between. Each side holds a signed record of the latest balance. The system is secure only if a party cannot gain by publishing an outdated record, and if the closing transaction confirms promptly, even when fees on the base chain are rising.
This page explains how a channel ends and the mechanisms that protect it: the ways to close, the penalty that deters cheating, services that watch the chain, the design that allows fees to be raised later, the fee-bumping technique they rely on, and a proposed replacement for the penalty model. These matter to payment businesses and node operators because a closure has real costs in fees and delay, and because funds can be at risk if a counterparty misbehaves. Background is in Lightning Protocol Basics and Lightning Channel Types.
Channel Close Types
A Lightning channel can end in three ways. In a cooperative close, both parties agree to stop, sign a final transaction that pays each its share and broadcast it. This is quick, confirms like any ordinary payment and carries a negotiated fee, so it is the normal and cheapest ending.
In a force close, also called a unilateral close, one party publishes its latest signed commitment transaction without the other's agreement, usually because the peer is offline or unresponsive. The party that closes must wait through a delay before it can spend its own output, and any payments in flight are resolved on the chain. A breach is the third case: one party publishes an old, revoked state that favours it, in the hope the other does not notice. The honest party can then claim all the funds with a justice transaction. Fees and timing differ in each case, and a force close costs more because it may need extra on-chain transactions.
Force Close
A force close is the unilateral ending of a channel by one party broadcasting the most recent commitment transaction that both sides signed. It is the fallback when the other side is offline, unresponsive or refusing to cooperate, and it guarantees that funds can always be recovered without anyone's permission.
When the commitment transaction confirms, the closer's own balance is locked by a timelock of a pre-agreed number of blocks, which gives the other side time to show that the state was outdated. The other party's balance is available at once. Payments in flight at the time of closure must be settled on the chain, which can take several days. The fee for the commitment transaction is set when the state is signed, so it can be too low if network fees have risen, which is why channels use anchor outputs. Force closes are costlier and slower than cooperative closes and tie up capital, so node operators try to avoid them. See Lightning Network: Channel Liquidity.
Justice Transaction
A justice transaction is the penalty transaction that lets an honest party take all the funds in a channel if the other party publishes an old state. Each time the balance is updated, both sides exchange secrets that revoke the earlier state, so that anyone broadcasting a revoked commitment gives the other party the means to sweep the whole channel balance.
This works because of the delay on the cheater's own output. During that window the honest party, or someone acting for it, must notice the breach and publish the justice transaction before the timelock ends. The result is that cheating risks losing everything, including funds the cheater was entitled to. The design relies on the honest party being online or on an agent watching for it, which is the role of a watchtower. It also explains why a lost backup is dangerous: restoring an outdated channel state and publishing it by mistake can look like cheating and forfeit funds.
Watchtower
A watchtower is a third-party service that monitors the blockchain on behalf of a Lightning user and publishes a penalty transaction if it sees a revoked channel state, even when the user is offline. The user sends the watchtower encrypted data for each update, which it can decrypt and use only if the matching breach appears on the chain.
The design protects privacy. Since the tower sees only an identifier and an encrypted blob until a breach occurs, it learns little about the user's payments. Incentives are a challenge. Some towers are free and run by volunteers, while others take a fee or a share of recovered funds, and a tower that goes offline gives no protection. Users who run their own node and keep it online may not need one, but mobile users and merchants who cannot guarantee uptime often rely on towers. A tower can only act on information it was given, so it does not help with a lost backup, and users must still trust its availability.
Anchor Outputs
Anchor outputs are small additions to a Lightning commitment transaction that allow either party to raise its fee after the transaction has been signed. Before their use, the fee was fixed when the state was agreed, and if fees on the base chain rose, a force close could be stuck and unconfirmed, and time-sensitive payments could expire.
An anchor is a tiny output that each side can spend. By spending it in a second transaction with a high fee, a party can pull the commitment transaction into a block through child-pays-for-parent fee bumping, whatever fee was originally set. This keeps the commitment fee low at signing, so channels do not need to reserve as much, and lets it be set when closing. The design has a weakness known as pinning, in which a counterparty attaches a large low-fee child transaction to the parent so that it blocks a replacement. Refinements aim to limit this risk. Lightning anchors are an example of how transaction fees shape channel design.
Child Pays for Parent (CPFP)
Child pays for parent is a method of speeding up an unconfirmed Bitcoin transaction. A new transaction, the child, spends an output of the stuck parent and pays a high enough fee that the pair together offer miners an attractive rate. Miners who want the child's fee must include the parent in the same block, so both confirm.
It is useful when the sender of the parent cannot replace it, but the recipient or another party who controls one of its outputs can. This contrasts with replace-by-fee, in which the original sender broadcasts a new version of the same transaction with a higher fee. The technique is central to Lightning anchor outputs, where either party can fee-bump a commitment transaction the other signed. Its limits include the need for a spare output and a coin to pay the extra fee, and a restriction on the size and number of linked transactions in the mempool, which can enable pinning attacks.
Eltoo
Eltoo is a proposed way of updating Lightning channels so that the latest state automatically replaces earlier ones, without needing a penalty for publishing an old state. It was described in 2018 by the developers Christian Decker, Rusty Russell and Olaoluwa Osuntokun. Each update spends the previous one and can be published at any time, but only the most recent can finally settle.
The advantage is simpler channels. Because there is no revoked state to punish, parties need not store a growing history of old states or rely on watchtowers in the same way, and multi-party channels and channel factories become easier to build. Nothing is lost by a stale publication, since a later update overrides it. The drawback is that it needs a change to Bitcoin's rules, a soft fork, for a new signature mode known as anyprevout, and it has not been activated. Contentious debate about the timing and risks of adding such features to Bitcoin has slowed progress.
Ref 1070001411