Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.
Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.
This commit fixes bugs in LND's new RBF-style cooperative channel close feature. Previously, fee-bump requests could be dropped or block the peer's main goroutine while waiting for an in-progress offer. The patch buffers those requests ins…
Denial-of-service / liveness fix: fee-bump requests no longer block the peer's `channelManager` goroutine while waiting for an in-flight offer.State consistency fix: buffered fee-bump requests are now part of the FSM state instead of being dropped during shutdown or flush.Resource-leak fix: confirmed RBF closes now tear down the active channel state and switch link for both local and remote-initiated closes.
This change fixes a wallet synchronization check in LND. Previously, the wallet only compared block heights to decide if it was fully caught up with the Bitcoin chain. During a chain reorganization (a temporary fork where one block is repl…
State synchronization check previously used height only, which is insufficient across reorgsFix adds block hash comparison to prevent false-positive sync statusCould cause LND to proceed while wallet state reflects an invalidated or not-yet-updated chain tip
This commit fixes a missing permission check on a new Lightning routing RPC called XFindBaseLocalChanAlias. Without the entry, any valid macaroon could call that RPC, bypassing the normal access-control list. The patch adds the required pe…
Missing macaroon authorization entry for an RPC endpointPotential privilege escalation: any valid macaroon could invoke an unprotected RPCRegression test added to enforce macPermissions coverage
This large LND patch changes when an ordinary invoice is considered 'paid'. Previously, releasing the preimage (the secret that lets the payer claim the funds) immediately marked the invoice as settled. Now the invoice enters a new interme…
New intermediate invoice/HTLC state prevents premature settlement reportingOn-chain HTLC outcomes persisted without opt-in to support restart recoveryForwarding package marker persisted before preimage release to avoid replay rejection on restart
This commit only adds documentation to the release notes. It describes a previously merged code change (PR 11555) about how LND handles invoice finality, but the commit itself contains no code, bug fixes, or behavior changes. There is noth…
This change fixes a bug in LND's invoice handling for multi-part payments (MPP and AMP). When a payment is split into several pieces (HTLCs), each piece is accepted individually. Previously, an old accepted piece could become too close to …
Fixes missing revalidation of accepted HTLC CLTV expiries at MPP/AMP set completionPrevents settlement of shards whose on-chain claim window has become unsafe while heldAdds new fail resolution ResultHtlcSetExpiryTooSoon and cancels the entire affected set
This commit changes how LND's wallet locks (leases) unspent coins through its RPC interface. It removes a recently added 'release after N confirmations' option and replaces it with an explicit 'no expiry' flag. Old clients that still send …
Breaking API change that reserves removed protobuf fields to prevent accidental reintroductionExplicit rejection of legacy `release_after_spend_confs` parameters from old clients instead of silent fallbackValidation prevents conflicting no-expiry + duration lease settings before wallet state is touched
This commit refactors how the Lightning Network Daemon (LND) stores and queries channel graph data so that the same channel or node can exist under both old (v1) and new (v2) gossip protocols without the database returning stale, missing, …
Cross-version data consistency: prevents a v2 channel shell from shadowing a usable v1 channel, which could affect routing decisions and RPC output.Cache consistency: ensures the in-memory pathfinding cache and the SQL-backed RPC reads agree on which channel version and policies are active.Bug fix: zombie edge info now carries the correct channel ID instead of 0, which could have caused incorrect channel identification during resurrection.
This is a large bug-fix patch for LND (a Bitcoin Lightning Network node) that tightens correctness rules across many subsystems. It prevents several ways a node could mis-handle channel data, accept bad network gossip, commit corrupted dat…
Database transaction commit now aborts on read errors (etcd) - prevents silent data corruption / inconsistent stateGossip zombie marking removed for invalid funding script - prevents denial-of-service / channel graph poisoningWire message length bounding added to watchtower protocol - prevents memory exhaustion / malformed message parsing
This commit changes how LND handles multi-part Lightning payments when one part fails after the preimage was already released. Previously, the invoice could be marked as fully paid even if one shard was later reclaimed by the payer on-chai…
Changes invoice settlement semantics for released-but-failed HTLCsAdds new persisted HTLC state `HtlcStateFailed`Prevents invoice from reaching `ContractSettled` when any released shard fails
This change tightens the rules for opening Lightning payment channels by refusing a setting called the CSV delay when it is set to zero. The CSV delay is the waiting period a user must endure before reclaiming their own funds from a channe…
Rejects a zero CSV delay that would eliminate the breach-remedy windowCentralizes the check in VerifyConstraints so all channel types and directions are coveredAdds explicit error type and unit test for the new constraint
This commit fixes two bugs in how Lightning Network channel data is saved to disk. First, it stops extra 'aux' signatures meant only for advanced taproot channels from being saved on ordinary channels, where they don't belong. Second, it p…
Persisted state could become unreadable due to writer/reader size mismatchAuxiliary signatures for taproot overlay channels were persisted on plain channel HTLCsFix adds explicit serialization bound to prevent unreadable channel records
This commit adds the first end-to-end BOLT 12 'Offers' flow to LND: a new dev-only RPC and CLI command to create offers, plus a dispatcher that listens for incoming onion-message invoice requests and replies with signed BOLT 12 invoices. I…
New network-facing dispatcher answers invoice requests from any peer; rate and concurrency limits are appliedBlinded-path PathID check prevents reply linking to self-created paths, but TODO notes the check should move once offers can have offer_pathsCreateOffer RPC is restricted to dev builds and requires offchain:write macaroon permission
This change fixes a bug in LND's invoice handling for AMP (Atomic Multi-Path) payments. Previously, if someone tried to pay a fresh shard for an AMP set that was already fully paid, the invoice updater could return an internal error that w…
Denial-of-service vector: an internal updater error could force-fail a shared channel link, disrupting unrelated sibling HTLCsAMP invoice state machine edge case: reusable invoice stays open for other sets but must reject new shards for already-settled setsClean failure path introduced: ResultInvoiceNotOpen instead of error-driven link failure
This is a large feature merge for LND that adds a new optional RPC subsystem called switchrpc. It lets an external program hand a pre-built onion packet to LND for direct dispatch over a Lightning channel, instead of LND doing its own path…
New optional RPC surface (switchrpc) that accepts externally crafted onion packets and directly dispatches HTLCsIdempotency/deduplication added via InitAttempt durable write-ahead log and ErrPaymentIDAlreadyExistsStartup orphan cleanup fails half-open or pre-commit attempts to avoid hangs
This commit fixes a bug in LND's transaction sweeping logic. Previously, if the Bitcoin backend rejected a sweep transaction for a temporary or unknown reason (for example, the mempool was full, a network error occurred, or the rejection r…
Funds-availability / liveness fix: temporary or unknown mempool rejections could leave sweep inputs unspent.Error-handling reclassification: previously fatal errors now retryable.Retry metadata preservation: next fee rate and fee cap kept across attempts.
This change is a hardening fix for LND's remote-signing feature. Previously, if a node was configured to act as an outbound remote signer but was compiled without the required 'signrpc' and 'walletrpc' sub-servers, it would silently fall b…
silent-degradation-to-no-op preventedconfiguration-misconfiguration now surfaces as fatal errorbuild-tag-dependency explicitly validated at runtime
This commit only fixes blank-line spacing in a single test file to satisfy lint checks. It adds one blank line after a function signature and removes one trailing blank line. There are no code behavior changes, no bug fixes, and no securit…
This change updates two GitHub Actions used in the project's automated lint workflow so they are locked to specific commit hashes instead of floating version tags. A floating tag could be silently repointed to a different, possibly malicio…
CI/CD supply-chain hardeningthird-party action pinning by commit hashprevention of tag-movement attacks
This commit fixes the GitHub Actions CI setup for running a custom code linter. It makes sure Docker can read and write build caches correctly and that the built linter image is available for later steps. There is no user-facing security f…
mod: drop queue + kvdb replaces, require tagged versions
In this commit, we drop the in-tree replace directives for the queue and kvdb submodules now that both have proper tags. queue/v1.2.0 carries the BackpressureQueue[T] work, and kvdb/v1.5.0 completes the pgx/v4 -> pgx/v5 migration. Both tags point at the same commit where each module last changed, so swapping the local copies for the tagged versions doesn't change what we build.
We keep the sqldb replace for now: that one's still waiting on the gossip V2 sqldb changes before we can cut its tag.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100
This commit is a routine dependency housekeeping change. It swaps two internal LND submodules (queue and kvdb) from being loaded from local folders to being loaded from their newly published version tags. The commit message explicitly states the tagged versions contain the exact same code as the local copies, so nothing in the built program changes. There is no security fix or vulnerability patch here.
Bump the root and standalone kvdb module OTel dependencies to v1.40.0, which is the first release containing the fix for GO-2026-4394. This also raises golang.org/x/sys to v0.40.0 through the updated module graph.
Keep the root and nested kvdb module metadata aligned so both normal and kvdb_etcd builds resolve the fixed SDK version.
85/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
AI analysis · Low 46/100
This commit updates the OpenTelemetry (OTel) software library used by the Lightning Network Daemon (LND) from a version with a known security flaw to a fixed version. It is a dependency-only change affecting build files, not LND's own code. The commit message explicitly says it fixes GO-2026-4394, a published vulnerability database entry, but the exact attack details are not shown in the diff itself.
Update the standalone kvdb module to resolve google.golang.org/grpc at v1.79.3. The root module already requires this version, but kvdb can also be tested or consumed as a nested module on its own.
Run go mod tidy in kvdb so the transitive requirements and checksums match the grpc version selected by the module graph.
78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Low 25/100
This commit updates dependency versions inside a small sub-module (kvdb) of the Lightning Network Daemon (LND) project. The main change is raising the minimum version of the gRPC networking library and several related packages. It does not change any application code, only the list of external libraries used. The commit message does not say it fixes a security bug, and no security advisory was supplied. It is best treated as a routine maintenance update that may incidentally include bug fixes from newer dependency versions.
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 23/100
This commit rewrites a database query that lists unfinished Lightning payments. The old query first built a temporary list of all matching payment IDs, which could become huge and consume excessive memory or CPU. The new query checks the same conditions directly while scanning payments in small paginated chunks, avoiding that large intermediate result. It is a performance and robustness improvement rather than a fix for a clear security vulnerability.
Lower-prioritydocs: mention release tag helperby ziggie · 4fcde943 · May 27, 2026 · 1 fileMessage 80 · StrongInformational 15Details
Commit message · ziggie
docs: mention release tag helper
Update the release branch management guide to use the release tag helper instead of raw git tag commands.
This keeps the process aligned with the new script while leaving the final push as an explicit maintainer step.
80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit only updates a documentation file describing how maintainers should create release tags. It replaces manual git tag commands with references to a helper script. There is no code change, no bug fix, and no security issue in the commit itself.
Lower-prioritydocs: update db migration guide subsystem readiness for v0.21by saubyk · 9a260ee0 · May 27, 2026 · 1 fileMessage 85 · StrongInformational 15Details
Commit message · saubyk
docs: update db migration guide subsystem readiness for v0.21
Mark the payments relational backend as available in v0.21 and refresh the related guidance that previously told payment-heavy operators to wait for the v0.21 release. Add btcwallet and channel state as in-progress subsystems targeted for v0.22 (replacing the forwarding history entry), and update the migration flow diagram and future improvements list to match.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit only updates a documentation file (docs/db_migration_guide.md). It refreshes the roadmap table, a flowchart, and guidance text to reflect that the payments relational backend is now available in v0.21 and that btcwallet/channel state work is targeted for v0.22. No code, configuration, or cryptographic behavior changed.
AI review queuedbuild: bump Go version to 1.26.3by ziggie · d3dad169 · May 26, 2026 · 29 filesMessage 57 · ThinInformational 24Details
Commit message · ziggie
build: bump Go version to 1.26.3
57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
second-pass: unusually broad change
AI analysis · Informational 24/100
This commit updates the Go compiler/toolchain version used to build the LND Lightning node from Go 1.25.5 to Go 1.26.3, and bumps the minimum Go language version declared in module files from 1.25.5 to 1.25.10. It also swaps one Windows release target from 32-bit ARM to 64-bit ARM. There is no code change to LND itself. The main security relevance is that newer Go patch releases typically fix bugs and security vulnerabilities in the Go runtime and standard library, so staying current is good defensive hygiene. However, the commit message does not say this is a security fix, and no specific vulnerability is named.
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit adds a new automated security scanner to the project's continuous integration pipeline. It does not change any actual LND code, fix a bug, or patch a vulnerability. Instead, it introduces a weekly GitHub Actions workflow that builds the lnd and lncli release binaries and runs Google's govulncheck tool against them to detect known vulnerable Go dependencies. Findings are currently treated as warnings only (exit code 3 is advisory) while the team works through any existing baseline issues.
Lower-priorityrelease: validate version in release CIby ziggie · e1f03b42 · May 26, 2026 · 1 fileMessage 68 · AdequateLow 25Details
Commit message · ziggie
release: validate version in release CI
The release workflow runs from pushed version tags, but the build step was setting SKIP_VERSION_CHECK=1. That made scripts/release.sh exit before running check-tag, so CI did not compare the pushed tag with the version reported from build/version.go.
Run the normal release target instead. This keeps release CI from producing artifacts when the tag and embedded lnd version drift apart.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
defensive validationdocumentation-only discount
AI analysis · Low 25/100
This change tightens a release safety check. Previously, the automated release pipeline skipped a version comparison between the Git tag and the software's internal version number, so a release could accidentally be built and published with mismatched version labels. Now the check runs normally, preventing that mismatch. It is a supply-chain/process fix, not a fix for an exploitable code bug in running LND nodes.
Lower-prioritydocs: update docs after block-dn fixesby Oli · ff07a44d · May 26, 2026 · 1 fileMessage 80 · StrongInformational 15Details
Commit message · Oli
docs: update docs after block-dn fixes
The block-dn.org service now offers a */import/latest shortcut for the block and filter header import, so a block height doesn't need to be specified.
The issue on testnet3 was also fixed, so the warning in the text is no longer required.
80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit only updates user-facing documentation. It replaces hardcoded block heights with a new 'latest' shortcut URL for a third-party header-import service and removes an outdated warning about a broken testnet3 file. No code was changed, and there is no security issue in the commit itself.
scripts: add tag-release.sh to safely cut release tags
Adds a script that creates a signed annotated release tag only after verifying:
1. The requested tag name matches the version constants committed in HEAD:build/version.go. Catches the failure mode where a release branch is tagged before the version bump has been committed, which would otherwise leave the tagged commit reporting an old version string at runtime.
2. The local HEAD is identical to the upstream lightningnetwork/lnd view of the release branch. A release tag must never point at a commit that has not been merged upstream yet.
The upstream remote is discovered by URL rather than by name, since "origin" is conventionally the fork in a "gh repo fork" workflow. The branch defaults to whichever one is currently checked out (typically a release branch such as v0.21.x-branch) and can be overridden with --branch.
The script deliberately does not push the tag or auto-bump version.go; both remain explicit human steps.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 15/100
This commit adds a new internal helper script for LND maintainers to safely create release tags. It does not change any production code, network behavior, or wallet logic. The script only adds checks to prevent human release-process mistakes, such as tagging the wrong commit or a version that does not match the source code. There is no security vulnerability here.
Lower-prioritybuild: bump grpc to v1.79.3by ziggie · b32b6763 · May 25, 2026 · 3 filesMessage 57 · ThinLow 36Details
Commit message · ziggie
build: bump grpc to v1.79.3
57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Low 36/100
This commit simply updates the project's dependency on the gRPC networking library from version 1.79.1 to 1.79.3. It changes three files: the main module definition, the checksum file, and a CI workflow that pins this dependency. The commit message does not say why the update is needed, and no security advisory or researcher credit is included in the materials provided. Patch-level version bumps in dependencies often include bug or security fixes, but we cannot confirm that from the diff alone.
Lower-prioritydocs: document tor v2 onion handling in 0.21 release notesby Erick Cestari · fad749d0 · May 22, 2026 · 1 fileMessage 85 · StrongInformational 15Details
Commit message · Erick Cestari
docs: document tor v2 onion handling in 0.21 release notes
Add a 0.21 release-notes entry covering the `--tor.v2` removal, the boundary rejection of v2 input on operator entry points, the persisted-state filtering (self-node announcement, watchtower client, autopilot, graph bootstrapper, SCB restore), the Tor controller's v3-only ADD_ONION restriction, and the wire-faithful behavior that preserves peer-signed v2 entries through `lnwire`, `graph/db`, and the graph RPCs.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit only adds documentation to the 0.21.0 release notes. It describes how LND now rejects old-style Tor v2 onion addresses at configuration and command boundaries, filters them from several internal persisted-state paths, and preserves wire-faithful handling of peer-signed v2 announcements. There is no code change in this commit, so it does not itself fix or introduce a vulnerability.
Security candidatemulti: drop tor v2 onion production, keep wire codec faithfulby Erick Cestari · 2ae1db83 · May 22, 2026 · 31 filesMessage 88 · StrongLow 34Details
Commit message · Erick Cestari
multi: drop tor v2 onion production, keep wire codec faithful
Tor stopped serving v2 onion services in October 2021; lnd should not produce v2 addresses anymore, but it must still verify signatures on and re-broadcast peer NodeAnnouncement messages that carry v2 entries.
Stop accepting v2 as configuration input (lncfg), strip the legacy `--tor.v2` flag from the sample config, and remove the `tor.OnionHostToFakeIP` helper. Operator entry points (`--externalip`, `--listen`, `lncli connect`, `lncli wtclient towers add`) fail fast on a v2 `.onion` string, so upgrading nodes must remove any v2 entry from `lnd.conf` before lnd will start.
Filter persisted v2 state before use without rewriting on-disk records: the self-announcement builder strips any v2 entry inherited from the stored self-node; the watchtower client drops v2 entries from each persisted tower's address list (skipping the tower entirely if no non-v2 address remains); the autopilot connector, graph bootstrapper, and static-channel backup restore paths skip v2 entries before attempting outbound dials. Restrict the Tor controller's ADD_ONION path to v3 keys, including the encrypted on-disk legacy-key fallback.
For inbound announcements, keep the wire codec wire-faithful: `lnwire.WriteOnionAddr`, `graph/db.encodeOnionAddr`, and the matching decoders round-trip v2 bytes so `DataToSign` reproduces the bytes the remote peer signed, signature validation succeeds, and the announcement is persisted to the graph DB and re-broadcast across restarts byte-for- byte. RPC surfaces continue to expose the full address set so external tools can independently reproduce and verify the signed bytes.
Add a netann regression test that signs a [v3, v2, ipv4] announcement, round-trips it through Encode/Decode, verifies the signature, and confirms the resulting models.Node preserves the v2 entry. Add a graph bootstrapper test asserting v2 entries are skipped while v3 and plain TCP entries on the same node still surface as bootstrap candidates.
88/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Names security-relevant behavior explicitly
Why it was queued
signing boundaryfuzzing or regression evidence
AI analysis · Low 34/100
This commit removes support for obsolete Tor v2 onion addresses from the Lightning Network Daemon (lnd). Tor v2 services were shut down by the Tor network in October 2021, so lnd will no longer create, accept, or dial v2 onion addresses. However, it still keeps the ability to store and re-broadcast v2 addresses that appear in messages from other nodes, because doing otherwise would break signature verification on those older announcements. The change is a cleanup and hardening patch rather than a fix for an active security vulnerability.
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100
This commit only changes integration test code for the LND Lightning node. It makes a test more robust by checking that a specific coin (an 'outpoint') was spent in a mined block, rather than checking the exact transaction ID seen earlier. This handles cases where a transaction gets replaced via RBF (Replace-By-Fee) between the mempool check and block mining. There is no change to production code, no security fix, and no vulnerability.
AI review queuedcontractcourt+itest: tests for coop close insta-dispatchby Olaoluwa Osuntokun · eaa2d682 · May 21, 2026 · 5 filesMessage 83 · StrongLow 39Details
Commit message · Olaoluwa Osuntokun
contractcourt+itest: tests for coop close insta-dispatch
In this commit, we add three focused unit tests in contractcourt plus an itest that exercises the regression end-to-end.
The chain watcher harness gains an opt-in early-dispatch capture that records every notifyEarlyCoopClose invocation so tests can assert how many fired and what summaries they carried. On top of that:
TestEarlyDispatchCoopClose verifies the headline behavior. An async-path coop close fires exactly one early dispatch with IsPending=true and the post-N-conf flow still produces the regular CooperativeCloseInfo downstream.
TestEarlyDispatchForceCloseNotInvoked guards the carve-out: force closes never fire the early dispatch since their CLOSED_CHANNEL event timing is intentionally unchanged.
TestEarlyDispatchReorgRefiresOnReReplacement nails down the reorg path. Once a deep reorg removes the close, the early-dispatch flag is cleared and the next coop close re-fires the early event with its own summary, so a subscriber observes each distinct close attempt.
testZeroConfCoopCloseSubscribeEvents brings up a zero-conf channel between Alice and Bob with --dev.force-channel-close-confs=3 so the chain watcher takes the async multi-confirmation path. Alice subscribes to channel events, initiates a cooperative close, and the test asserts that CLOSED_CHANNEL fires after only one confirmation of the close tx (not after the full three) and that FULLY_RESOLVED_CHANNEL arrives once the close has reached three confirmations. A quiet-window assertion at the end verifies that exactly one CLOSED_CHANNEL event is delivered. If the suppression in MarkChannelClosed broke and let it re-fire NotifyClosedChannel at N confs, this assertion would catch the duplicate.
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
second-pass: broader security terminology
AI analysis · Low 39/100
This commit is a follow-up test and release-note patch for a previously fixed LND bug. The underlying issue was that subscribers listening for channel close events would not receive the 'CLOSED_CHANNEL' notification until a cooperative close transaction had been buried several blocks deep, instead of being told immediately when the close first appeared on-chain. The commit itself only adds unit tests and an integration test that prove the fix works, plus a release-note entry describing the restored behavior. It does not change production code, so it cannot introduce a new exploitable vulnerability on its own.
Lower-prioritycontractcourt+server: insta-dispatch CLOSED_CHANNEL on first confby Olaoluwa Osuntokun · cae2de1f · May 21, 2026 · 5 filesMessage 91 · StrongLow 32Details
Commit message · Olaoluwa Osuntokun
contractcourt+server: insta-dispatch CLOSED_CHANNEL on first conf
PR #10331 introduced a multi-confirmation reorg-aware dispatch in the chain watcher. In production builds CloseConfsForCapacity is at least 3, so the chain watcher waits for three confirmations of a close tx before running dispatchCooperativeClose, MarkChannelClosed, and NotifyClosedChannel. Subscribers of the SubscribeChannelEvents stream that used to receive a CLOSED_CHANNEL event after a single confirmation in v0.20.1 stopped seeing the event entirely on shorter test cycles and were delayed by two extra blocks on longer ones. This is the regression alexbosworth reported on zero-conf channels.
The intent behind the original change was to wait three confirmations under the hood for reorg safety while still dispatching a CLOSED_CHANNEL event to RPC subscribers immediately, matching the v0.20.1 surface. That insta-dispatch was wired into peer.WaitForChanToClose for the local CloseChannel response stream but was never extended to the channel-notifier path that drives SubscribeChannelEvents.
In this commit, we wire a new optional notifyEarlyCoopClose callback into the chain watcher's processDetectedSpend. The first time a coop close spend is detected on chain, the chain watcher synthesizes a ChannelCloseSummary with IsPending=true and dispatches a CLOSED_CHANNEL event over the channel notifier, no DB round-trip required. The callback is plumbed through ChainArbitratorConfig .NotifyEarlyClosedChannel to the new ChannelNotifier.NotifyEarlyClosedChannelEvent. The summary builder shared with dispatchCooperativeClose is extracted into buildCoopCloseSummary so the early and post-N-conf paths produce equivalent payloads.
A coopCloseEarlyDispatched flag on the chain watcher keeps the dispatch idempotent across blockbeat replays of the same spend, and the closeObserver clears it on negativeConfChan so a re-mined or replacement close after a deep reorg re-fires the preliminary event with its own summary. The early-dispatch call sits before the fast-path check so numConfs==1 also fires the early event through the same code path.
Suppressing the duplicate notify at MarkChannelClosed time happens inline in the chain_arbitrator MarkChannelClosed callback: after CloseChannel succeeds, NotifyClosedChannel is fired only when the close type is not CooperativeClose. Force, breach, and abandon paths intentionally remain on the existing N-confirmation dispatch contract.
91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
AI analysis · Low 32/100
This commit fixes a regression in the LND Lightning node where users subscribing to channel-closure events stopped receiving timely notifications after a previous update added extra confirmation waiting. The fix restores the old behavior of notifying immediately when a cooperative channel close is first seen on the blockchain, while still waiting the full number of confirmations internally before finalizing the closure in the database. It is a bug-fix for event timing, not a security vulnerability, and does not introduce an attack vector.
Today NotifyClosedChannelEvent rebuilds its event by round-tripping through FetchClosedChannel, which forces the caller to have already persisted the close summary to the closed-channel bucket. The chain watcher needs to surface a CLOSED_CHANNEL event to RPC subscribers as soon as a coop close spend is first detected on chain, well before the close has reached the required confirmation depth at which the state machine would normally call MarkChannelClosed.
In this commit, we add NotifyEarlyClosedChannelEvent, which dispatches a ClosedChannelEvent built from a caller-supplied summary directly through the subscribe server. The summary is expected to carry IsPending=true so subscribers can recognize that the close has not yet been finalized in the database.
Two unit tests assert that the new path delivers the supplied summary verbatim and produces exactly one event per call.
This commit adds a new internal notification path in LND so that the chain watcher can tell RPC subscribers about a cooperative channel close as soon as it is seen on the Bitcoin blockchain, before the usual database bookkeeping is finished. It is a feature/refactoring change, not a fix for an active security bug. The new function simply forwards a caller-supplied close summary to subscribers without reading from the database.
Lower-prioritydocs: clarify taproot channel open defaultsby yyforyongyu · 654b680a · May 21, 2026 · 1 fileMessage 57 · ThinInformational 15Details
Commit message · yyforyongyu
docs: clarify taproot channel open defaults
57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit only updates release notes documentation. It clarifies that users must explicitly request Taproot channel types and keep them private for now. There is no code change and no security fix or vulnerability introduced.
Lower-priorityfunding: reject public taproot opens before sendingby yyforyongyu · 70953e08 · May 21, 2026 · 2 filesMessage 50 · ThinLow 43Details
Commit message · yyforyongyu
funding: reject public taproot opens before sending
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Low 43/100
This commit adds a safety check in LND's channel-opening code to prevent users from accidentally creating public (advertised) Taproot payment channels. The current Taproot channel implementation is only meant for private channels, so the patch now rejects such requests locally before any network message is sent. It also adds tests to confirm both sides of the channel-opening handshake reject public Taproot channels.
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Low 35/100
This change stops LND from automatically opening Taproot Lightning channels when both peers merely advertise support for them. Instead, Taproot channels now require an explicit channel type request. The commit message explains this is because public Taproot channel announcements are not yet supported, so implicit negotiation could accidentally create channels that cannot be publicly announced. This is a behavior-hardening change rather than a fix for a known active exploit.
Lower-prioritymulti: rename "taproot" channel type to mean production variantby Olaoluwa Osuntokun · 0aa1d8bd · May 21, 2026 · 6 filesMessage 73 · AdequateInformational 19Details
Commit message · Olaoluwa Osuntokun
multi: rename "taproot" channel type to mean production variant
In this commit, we shuffle the CLI and RPC names so the bare "taproot" identifier refers to the production taproot channel type (final scripts, feature bits 80/81), i.e. the variant new integrations should actually be using. Before this commit, "taproot" on the CLI mapped to the staging bits, and anyone who wanted a real production taproot channel had to spell out "taproot-final" on `lncli openchannel` or `SIMPLE_TAPROOT_FINAL` over RPC. The recommended choice was hidden behind the longer name.
On the CLI (`lncli openchannel --channel_type=...`):
- "taproot" now selects the production variant (it used to mean staging). - "taproot-staging" is added for the legacy development bits, for peers that haven't moved over yet. - "taproot-final" stays as a deprecated alias for "taproot" so existing scripts don't break.
On the RPC (`CommitmentType`):
- `TAPROOT = 7` is added as the canonical name for the production type. `SIMPLE_TAPROOT_FINAL = 7` is kept as a deprecated alias via `option allow_alias = true`, so existing clients keep compiling against the same Go constant and the wire value doesn't change. - `SIMPLE_TAPROOT = 5` (staging) is unchanged. - `SIMPLE_TAPROOT_OVERLAY = 6` is unchanged. The taproot-assets daemon hard-codes this distinct enum value, so it's unaffected.
Wire compat is preserved end-to-end: only the comments, enum entry order, and the CLI string-to-enum mapping change. The numeric values and the existing generated Go identifiers stay stable.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 19/100
This change is a user-facing rename, not a security fix. The developers noticed that the short, obvious name 'taproot' was accidentally pointing to an older experimental ('staging') channel type, while the recommended production version required a longer, harder-to-find name. They swapped the labels so 'taproot' now means the production version, added 'taproot-staging' for the old experimental one, and kept 'taproot-final' as a compatibility alias. The underlying numeric codes on the network wire did not change, so existing software keeps working.
Security candidatemulti: update neutrino dep to include chainimport and header state fixby Olaoluwa Osuntokun · 88fff36e · May 21, 2026 · 3 filesMessage 78 · AdequateInformational 12Details
Commit message · Olaoluwa Osuntokun
multi: update neutrino dep to include chainimport and header state fix
Update the neutrino dependency to a version that includes the chainimport package for fast initial header sync, and the ResetHeaderState fix that allows P2P sync to continue after import.
The updated neutrino dependency changes the ChainService.Start method signature to accept a context.Context parameter. Update all call sites to pass context.TODO() to maintain existing behavior.
78/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
Why it was queued
signing boundary
AI analysis · Informational 12/100
This commit simply updates a software library dependency (neutrino) used by the Lightning Network Daemon (LND). The new version is said to add a faster way to import blockchain headers and fix a bug that could stop peer-to-peer header syncing after an import. The actual code change shown is only a version bump in dependency files plus a tiny whitespace cleanup in a linter config. There is no direct evidence in the commit of a security vulnerability or attack.
Pass the configured BlockHeadersSource and FilterHeadersSource into neutrino's HeadersImportConfig when initializing the neutrino backend. Set blockchain.BFFastAdd validation flags for regtest and simnet to skip contextual timestamp checks on rapidly-mined blocks.
Call Validate on the neutrino config before proceeding to catch misconfiguration early.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
defensive validation
AI analysis · Low 32/100
This commit connects two previously-unused configuration options for Neutrino (LND's lightweight Bitcoin backend) so that users can import block and filter headers from a file or URL instead of downloading them from peers. It also loosens timestamp checks for local test networks and adds an early validation step for the Neutrino configuration. The change is a feature wiring/fix rather than a clear security patch, but it touches header validation paths that protect the wallet's view of the blockchain.
itest: add neutrino headers import integration test
Add an integration test that verifies neutrino header import from local files. The test mines blocks, starts a reference node to generate header files via normal P2P sync, copies those files with import metadata, then starts a new node configured to import headers from the prepared files.
The test verifies the import node syncs to the chain tip and can continue syncing additional blocks mined after import via P2P, exercising the hybrid import-then-P2P sync path.
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 15/100
This commit adds a new automated test for the LND Lightning node software. It does not change any production code; it only verifies that a neutrino-based node can import block headers from pre-built files and then continue syncing over the peer-to-peer network. There is no security fix or vulnerability present in this change.