CONNECT WITH US
Web3 & Blockchain

Web3 & Blockchain

Bitcoin Lightning developers patch bug that could make completed payments disappear

CryptoSlate logo

Published on

Add as a preferred source on Google
Bitcoin Lightning developers patch bug that could make completed payments disappear

A software flaw could cause nodes to lose track of settled payment updates after restarting, threatening the integrity of Lightning channel records.

Bitcoin Lightning developers patched a software vulnerability that could cause nodes to lose track of settled payments after a restart, potentially disrupting the accounting records that secure payment channels.

The flaw affected LND, a widely used implementation of Bitcoin's Lightning Network, which enables users to send Bitcoin through payment channels without recording every transaction directly on the blockchain.

Developers released v0.21.8-beta and v0.20.8-beta on Nov. 11 to address the issue, which stemmed from an error in how the software saved and restored channel updates.

The vulnerability could cause a node to reconstruct incomplete payment records after restarting, even when the original information remained stored on its disk.

That failure threatened the consistency of Lightning channels, where participants rely on accurate records to determine which payments have settled and what each party is owed.

According to LND maintainer Olaoluwa Osuntokun, known as Roasbeef, the problem involved a counter that tracked acknowledged updates from a connected Lightning peer.

The software stored the number of entries using a 16-bit unsigned integer, which can represent values only up to 65,535.

Once the list reached 65,536 entries, the counter reset to zero, even though LND continued writing the updates to storage.

Upon restarting, the node could interpret that zero as an empty list and omit a previously settled hashed timelock contract (HTLC), a conditional payment mechanism that helps secure transactions across Lightning channels.



Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.