# LND Fixes Overflow That Could Omit Settled HTLCs After Node Restarts

By Simon Yoon

Canonical URL: https://www.tokenpost.com/news/technology/58867
Published: 2026-11-16T22:22:29.000Z
Updated: 2026-11-16T22:22:29.000Z
Section: Technology

> The v0.21.8-beta and v0.20.8-beta releases were published Nov. 11 with checks for oversized channel-update lists.

LND released two beta versions Nov. 11 with a fix for a storage overflow that could make a restarted Bitcoin (BTC) Lightning node omit a settled payment contract from its reconstructed channel state. LND is a full implementation of a Lightning Network node; the fix was released in v0.21.8-beta and v0.20.8-beta.

The flaw involved a 16-bit unsigned count for acknowledged channel updates. When the list reached 65,536 entries, the count could wrap to zero even as the entries were written to disk. After a restart, the node could interpret the list as empty and rebuild its channel state without a previously settled hashed timelock contract (HTLC).

“At 65,536 entries, the count wraps to zero while the serializer still writes every entry,” said LND maintainer Olaoluwa Osuntokun, who authored the fix.

Repeated fee updates and commitment signatures without a returned revocation could grow the stored list. A test of that sequence produced 201 persisted updates after 200 rounds. The result demonstrates behavior in a test and does not establish that a live node was attacked.

The fix was merged on Nov. 5 and backported to the v0.21.x and v0.20.x release branches that day. It rejects an oversized list before the node advances its local commitment tail or returns a revocation. The serializer also rejects an oversized list before writing its bytes, while the reader checks older records for consistency and rejects malformed trailing data.

Lightning channels use off-chain commitment transactions to represent their current state. HTLCs carry conditional payments between nodes. The flaw involved how a node restored channel records after a restart; it does not establish that a payment was erased or funds were lost.


