Skip to content

Commit d307aaa

Browse files
committed
docs: add release note for two-phase channel close
Documents the two-phase channel close change (PR #10732) in the 0.21.0 release notes under the Database section.
1 parent 50bbddc commit d307aaa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/release-notes/release-notes-0.21.0.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,17 @@
369369
`native-sql` setting enabled.
370370

371371

372+
* [Channel close is now split into two phases to avoid long write-lock
373+
hold times on the KV-over-SQL
374+
backends](https://github.com/lightningnetwork/lnd/pull/10732). Phase 1
375+
atomically removes the channel from all open-channel views in a small
376+
O(1) transaction. Phase 2 deletes the bulk historical data (revocation
377+
log entries, forwarding packages) in small batches of
378+
`DefaultPurgeBatchSize` (500) entries per transaction, keeping each
379+
write-lock window short. Pending Phase 2 cleanups are persisted and
380+
automatically resumed on node restart, so no data is left dangling
381+
after an interrupted shutdown.
382+
372383
## Code Health
373384

374385
* [Update taproot detection](https://github.com/lightningnetwork/lnd/pull/10683)

0 commit comments

Comments
 (0)