Bitcoin Optech Newsletter #427 Recap: Eclair Denial-of-Service Disclosures, LN-GAP Contracts, and Core 32.0 RC4
In the latest episode of the Bitcoin Optech Podcast, hosts Mike Schmidt, Mark "Murch" Erhardt, and Gustavo Flores Echaiz convened to break down the technical developments featured in Newsletter #427. Joined by special guests Erick Cestari and Adam Gibson (also known as waxwing), the panel explored critical security disclosures, novel offchain contract architectures, the latest Bitcoin Core release candidate, and an extensive batch of notable code and documentation changes across major Lightning implementations and developer kits.
Eclair Denial-of-Service Vulnerabilities Disclosed and Patched
The episode opened with a deep dive into two critical denial-of-service (DoS) vulnerabilities affecting older versions of the Eclair Lightning implementation. Erick Cestari, a Vinteum grantee specializing in Lightning Network security, joined the discussion to detail the vulnerabilities, which were addressed and fixed in Eclair v0.14.1 back in July.

Both vulnerabilities targeted Eclair’s memory management during the channel-opening handshake, specifically exploiting the PendingChannelsRateLimiter mechanism designed to restrict peers from flooding a node with unfunded pending channels. The first vulnerability, discovered by Matt Morehouse using his smite fuzzing engine, stemmed from an asynchronous race condition. When Eclair attempted to add a pending channel’s temporary channel identifier to its rate limiter, a delay between the initial check and its insertion into an internal map allowed an attacker to send multiple identical open_channel messages. This bypassed rate-limiting checks and leaked heap memory at a rate of approximately one megabyte per second until the node eventually crashed.
The second vulnerability was discovered using an automated LLM scanning framework configured by Cestari, drawing on research methodologies outlined in public security harness guides. This flaw involved the way Eclair handled temporary channel IDs and final channel IDs within its rate limiter array. By crafting a specific sequence where a subsequent open_channel message reused a previous channel ID as a temporary identifier, an attacker could manipulate array filtering logic. This caused Eclair to inadvertently drop legitimate final channel IDs while keeping unlimited ghost entries hidden behind the scenes. Furthermore, the compromised state was written to disk, resulting in a persistent crash loop upon node restarts.

Both issues have been fully remediated in Eclair v0.14.1 through synchronous, atomic operations and rigorous validation checks, and node operators have been strongly urged to ensure their software is up to date.
Exploring Offchain Contracts with LN-GAP
Shifting from network security to cryptographic contract design, Adam Gibson joined the podcast to discuss his latest research project, dubbed LN-GAP (governed by arbitrary programs), which explores ways to execute multi-round offchain contracts—such as chess games or complex financial agreements—within Lightning channels.

Gibson explained that while executing complex rules directly in Bitcoin Script is severely constrained by limited stack sizes and arithmetic restrictions, certain techniques make advanced offchain logic feasible. By leveraging Taproot, developers can embed numerous distinct conditional predicates within separate script leaves, allowing counterparties to concisely prove rule violations or invalid moves using minimal evidence. To carry state across transactions without native covenants, the architecture relies on signature chains paired with Winternitz or Lamport one-time signatures to prevent equivocation.
Because playing resource-heavy multi-step games directly on the Bitcoin blockchain would be prohibitively expensive and slow, Gibson adapted state-channel concepts similar to Ethereum’s "ForceMove" paradigm. However, to bypass the requirement of dragging stalling disputes onto the main blockchain, LN-GAP introduces a decentralized "venue"—a federation of attestation providers. Rather than interpreting the complex game logic itself, this venue acts strictly as a timestamping oracle that attests to whether participants submitted their moves before pre-agreed deadlines.

The system uses elliptic curve one-time signatures to provide automated, atomic Lightning payouts to venue members for their attestations, creating an economic incentive structure. While Gibson acknowledged that collusion among venue members represents a fundamental trust assumption, the model ensures that funds remain under the direct control of the contract participants rather than a centralized custodian, offering a lightweight alternative for decentralized bilateral agreements.
Bitcoin Core 32.0 Release Candidate 4 Updates
The discussion then moved to the release candidate phase for Bitcoin Core 32.0, with Gustavo Flores Echaiz and Mark Erhardt walking through the latest updates. Testing for version 32.0rc4 is currently underway, inviting community feedback ahead of final deployment.

Major changes in this release cycle include a complete rewrite of the HTTP server, which removes the external libevent dependency, alongside updates to the estimatesmartfee combined estimator to incorporate a mempool feerate estimator. Performance and storage optimizations were also highlighted, particularly new storage schemes for the transaction index (txindex) and transaction spender index (txospenderindex). While one of the storage schemes is backwards-compatible, rebuilding these indexes after upgrading can save approximately half the disk space required, providing critical relief for node operators facing storage limitations.
On the networking side, default peer connections have been increased from 125 to 200. However, because this increase is allocated entirely to blocks-only connections rather than transaction-relaying peers, the aggregate transaction traffic remains stable while significantly bolstering the node’s resilience against eclipse attacks.

Notable Code and Documentation Changes Across the Ecosystem
The episode concluded with an extensive technical review of code and documentation updates across major Bitcoin and Lightning repositories, led primarily by Gustavo Flores Echaiz.
A significant portion of the review focused on a batch of security and robustness fixes implemented in Eclair. Pull requests #3396, #3397, and #3400 addressed scenarios where malicious peers could manipulate splicing transactions—such as setting distant absolute locktimes, introducing conflicting unconfirmed inputs, or altering replacement transactions—to prevent Eclair from enforcing Hash Time Locked Contracts (HTLCs) onchain. Additional Eclair updates resolved edge cases in on-the-fly mobile channel funding where duplicate payment instructions or mismatched payment hashes could lead to unintended balance deductions, as well as a packet-decoding crash vulnerability triggered by malformed onion payloads.

Lightning Development Kit (LDK) updates included PR #5080, which ensures that channels undergoing cooperative close or shutdown are properly included when restoring state to process pending HTLCs, preventing unnecessary payment lockups. Furthermore, LDK #5080 resolved a potential privacy leak involving blinded paths and dummy hops by ensuring that message-content records destined for actual recipients are strictly rejected when arriving at decoy routing positions.
In the LND repository, PR #11068 introduced crucial verification checks for auxiliary HTLC signatures on experimental taproot overlay channels used for Taproot Assets, ensuring that missing non-bitcoin signatures correctly trigger channel force-closes rather than leaving multi-asset state unresolvable onchain.

Rounding out the developer toolkit updates, Rust Bitcoin PR #6956 introduced the ScriptCode type to handle edge cases in legacy and segwit v0 signature hashing where OP_CODESEPARATOR causes the signed script to diverge from the raw witness script. Finally, BDK PR #2319 resolved a tracking bug in Electrum-backed wallets where chain reorganizations affecting transaction confirmations were previously missed due to cached block header mismatches.
The episode wrapped up with final remarks from the hosts, encouraging developers and node operators to test the latest release candidates and review ongoing protocol developments across the open-source ecosystem.
