LL
← All projectsLightning Labs

LND

Go implementation of a complete Lightning Network node.

BitcoinLightning NetworkNormal
Repository coverage

1689 commits in the local evidence base

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.

187security candidates237second-pass queue1374AI analyses
164commits · 30 days
267commits · 60 days
640commits · 180 days
1424commits · 365 days
Backfill bands
Aug 5 → Feb 6405 seen5 candidatesComplete
Feb 6 → Jun 6665 seen28 candidatesComplete
Jun 6 → Jul 689 seen4 candidatesComplete
Jul 6 → Aug 569 seen0 candidatesComplete
Commit communication

Does the history explain itself?

Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.

68/100 average clarity
388Strong · 80–100
838Adequate · 60–79
432Thin · 40–59
31Opaque · 0–39
1security candidate with opaque commit messaging
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
Olaoluwa Osuntokun29860237474
ziggie49922422265
Elle Mouton26832268167
Yong60926172
ziggieXXX50617170
George Tsagkarelis37335167
LNBiG111173
Jared Tobin909171
yyforyongyu1211574070
bitromortac731154071
Erick Cestari26726070
Suheb746074
Analysis record

Published AI watches

Last scanned 11 minutes ago

Moderate 66 AI analysisMessage 96 · Strong
LL Lightning LabsLND BitcoinLightning Network

channeldb: persist local updates the peer acked before our first revoke (#11268)

This commit fixes a bug in LND's channel database where a specific type of fee update could be lost if a node restarted at a very precise moment during a Lightning channel's setup. If triggered, the node would reject a valid signature from…

Force-closure of a Lightning channel due to state desynchronization after restartLoss of locally initiated fee updates before first local revocationRegression test reproduces restart scenario leading to signature rejection
9f5e2c7bby Olaoluwa Osuntokun+78−133 files
Vendor flagged security relevance
Low 45 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11575 from Roasbeef/rbf-coop-close-lifecycle

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.
5597f6f7by Olaoluwa Osuntokun+1538−4248 files
Vendor flagged security relevance
Low 43 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11588 from ziggie1984/lnwallet/fix-reorg-wallet-sync-flake

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
8cdbf85cby Yong+224−1354 files
Vendor flagged security relevance
Moderate 51 AI analysisMessage 68 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #10708 from jtobin/alias-perms

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
98dc2b44by Olaoluwa Osuntokun+35−02 files
No security note in commit
Moderate 68 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11555 from yyforyongyu/invoice-settlement-public

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
895118acby Olaoluwa Osuntokun+4536−32048 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 80 · Strong
LL Lightning LabsLND BitcoinLightning Network

docs: describe invoice collection finality

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…

9649d9f6by yyforyongyu+87−01 file
No security note in commit
Moderate 64 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11551 from ziggie1984/public-pr149-sanitized

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
4b7447bcby Yong+281−347 files
Vendor flagged security relevance
Low 35 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11396 from yyforyongyu/task-lease-policy

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
03e28a96by Yong+663−4029 files
Vendor flagged security relevance
Low 40 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11175 from ViktorT-11/2026-08-gossip-version-agnostic-store

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.
8c251687by Yong+3752−28726 files
No security note in commit
Moderate 61 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11440 from Roasbeef/fix-longstanding-correctness-bugs

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
0123a548by Olaoluwa Osuntokun+1424−11938 files
Vendor flagged security relevance
Moderate 59 AI analysisMessage 80 · Strong
LL Lightning LabsLND BitcoinLightning Network

invoices: require complete payment collection

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
699ea930by Olaoluwa Osuntokun+492−4910 files
No security note in commit
Moderate 60 AI analysisMessage 78 · Adequate
LL Lightning LabsLND BitcoinLightning Network

lnwallet: reject a zero CSV delay

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
266eba7bby Olaoluwa Osuntokun+81−03 files
Vendor flagged security relevance
Moderate 58 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

lnwallet+chanstate: keep persisted HTLC data readable

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
43c74723by Olaoluwa Osuntokun+101−25 files
No security note in commit
Low 39 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11374 from bitromortac/20261016-c7e5-dispatch

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
a9d4ca3bby bitromortac+3113−7838 files
No security note in commit
Moderate 60 AI analysisMessage 78 · Adequate
LL Lightning LabsLND BitcoinLightning Network

invoices: reject settled AMP set shards

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
99e3da37by yyforyongyu+49−02 files
No security note in commit
Moderate 59 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11282 from lightningnetwork/elle-base-branch-payment-service

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
11f79be0by Olaoluwa Osuntokun+11385−22458 files
Vendor flagged security relevance
Low 44 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11472 from yyforyongyu/task-sweep-rejections

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.
c5863e55by Yong+290−9720 files
No security note in commit
Low 32 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

Merge pull request #11292 from ViktorT-11/2026-10-harden-remote-signing-no-op

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
0c538e1fby Suheb+241−125 files
No security note in commit
Informational 15 AI analysisMessage 73 · Adequate
LL Lightning LabsLND BitcoinLightning Network

invoices: fix test whitespace

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…

a67d07f4by yyforyongyu+1−11 file
No security note in commit
Low 31 AI analysisMessage 92 · Strong
LL Lightning LabsLND BitcoinLightning Network

build: pin the new lint job actions by commit

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
2a9f137dby Olaoluwa Osuntokun+4−21 file
Vendor flagged security relevance
Repository ledger

Explore captured commits

Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.

Lower-priorityrouting: Thread context through failPaymentAndAttemptby ziggie · e130ccc4 · Feb 25, 2026 · 2 filesMessage 65 · AdequateInformational 16Details
Commit message · ziggie

routing: Thread context through failPaymentAndAttempt

A context is added to failPaymentAndAttempt and its dependant
function calls.

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 16/100

This change is a routine code cleanup: it replaces a placeholder 'context.TODO()' with a proper context that is passed down through several related functions. Contexts help control timeouts and cancellation in Go programs. The patch itself does not fix a known security vulnerability or change any security-critical behavior; it mainly improves code quality and makes cancellation/timeouts more consistent.

Lower-priorityrouting: add context to failAttemptby ziggie · 5b068548 · Feb 25, 2026 · 1 fileMessage 45 · ThinInformational 12Details
Commit message · ziggie

routing: add context to failAttempt

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 12/100

This is a small internal code cleanup in LND's payment routing logic. It changes a helper function so callers pass in an existing request context, instead of the helper creating a blank placeholder context. There is no direct security fix here, but it removes a minor anti-pattern that could theoretically hide cancellation or timeout problems in future changes.

Lower-priorityrouting: Add context to requestRouteby ziggie · dfe0c43c · Feb 25, 2026 · 2 filesMessage 45 · ThinInformational 16Details
Commit message · ziggie

routing: Add context to requestRoute

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 16/100

This change replaces a placeholder 'context.TODO()' with a proper cancellation context in a routing function used when sending Lightning payments. It is a code-quality and robustness improvement that lets long-running route-finding operations be cancelled cleanly. There is no direct evidence this fixes an exploitable security vulnerability.

Lower-prioritymulti: thread context through Fail payment functionsby ziggie · 635a67c9 · Feb 25, 2026 · 10 filesMessage 50 · ThinInformational 20Details
Commit message · ziggie

multi: thread context through Fail payment functions

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 20/100

This change threads a context.Context through the payment-failure code paths in LND. The most user-visible effect is that when a payment's own context is cancelled, the code now uses a fresh context (context.WithoutCancel) so the database can still record the payment as failed instead of leaving it stuck in-flight. It also removes several context.TODO() placeholders in the SQL store and routing lifecycle. This is a robustness/cleanup change rather than a security fix; there is no exploit or attacker-controlled path visible in the diff.

Lower-prioritydocs: add release notesby ziggie · 33597ad3 · Feb 25, 2026 · 1 fileMessage 40 · ThinInformational 15Details
Commit message · ziggie

docs: add release notes

40/100 · ThinMessage clarity
✓ Subject identifies a change✓ 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 adds a single line to the release notes document, referencing a prior code change about threading context through payment database functions. It contains no code changes, no bug fixes, and no security-related content.

Lower-prioritymulti: thread context through DeleteFailedAttemptsby ziggie · 7f2df4b0 · Feb 25, 2026 · 7 filesMessage 50 · ThinInformational 21Details
Commit message · ziggie

multi: thread context through DeleteFailedAttempts

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 21/100

This change threads a context parameter through the DeleteFailedAttempts function so that database cleanup operations can continue even if the original request context is cancelled. It is a robustness improvement, not a fix for an actively exploitable security vulnerability. The commit message and diff do not describe any security issue.

Lower-prioritymulti: thread context through RegisterAttempt methodby ziggie · 8bb7150d · Feb 25, 2026 · 9 filesMessage 50 · ThinInformational 19Details
Commit message · ziggie

multi: thread context through RegisterAttempt method

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 19/100

This change is a straightforward internal code cleanup: it threads a context.Context argument through the RegisterAttempt method so callers can pass cancellation/timeout information instead of the database layer creating a blank context.TODO(). It does not change payment logic, validation rules, or security boundaries. The only functional difference is that the SQL store now uses whatever context the caller provides rather than a placeholder context. There is no indication this fixes a vulnerability or introduces a new attack path.

Lower-prioritymulti: thread context through SettleAttemptby ziggie · 3b7fdaba · Feb 25, 2026 · 9 filesMessage 45 · ThinInformational 18Details
Commit message · ziggie

multi: thread context through SettleAttempt

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 18/100

This change is a straightforward code cleanup: it threads a context.Context parameter through the SettleAttempt function so callers pass in a request-scoped context instead of the function internally using a placeholder context.TODO(). It does not change payment logic, access controls, or cryptographic handling. The only functional difference is that database operations during settle can now be cancelled or timed out by the caller's context, which is generally an improvement but not a security fix on its own.

Lower-prioritymulti: thread context through FailAttemptby ziggie · 44630098 · Feb 25, 2026 · 10 filesMessage 45 · ThinInformational 18Details
Commit message · ziggie

multi: thread context through FailAttempt

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 18/100

This change is a routine code cleanup: it threads a context.Context argument through the FailAttempt function and its callers. Contexts let operations respect cancellation and timeouts. The patch does not fix a known vulnerability; it removes two temporary context.TODO() placeholders and makes the function signature consistent with related functions like SettleAttempt. There is no security-relevant behavior change visible in the diff.

Lower-prioritymulti: thread context through InitPaymentby ziggie · 60026494 · Feb 25, 2026 · 9 filesMessage 45 · ThinInformational 19Details
Commit message · ziggie

multi: thread context through InitPayment

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 19/100

This change is a routine code cleanup: it threads a context.Context argument through the InitPayment function across several files. A context lets callers cancel or time out long-running operations. The patch removes placeholder context.TODO() calls in the SQL store and control tower, but it still introduces a new context.TODO() in the router's PreparePayment path. There is no direct security fix here, but it improves the ability to cancel database transactions properly in the future.

Lower-prioritymulti: thread context through FetchInflightPaymentsby ziggie · 10062ca9 · Feb 25, 2026 · 7 filesMessage 50 · ThinInformational 19Details
Commit message · ziggie

multi: thread context through FetchInflightPayments

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 19/100

This change threads a context parameter through the FetchInFlightPayments function across multiple components. It replaces a hardcoded context.TODO() in the SQL store with a caller-provided context, allowing better cancellation and timeout control. There is no direct security vulnerability being fixed here; it is a code-quality and operational improvement.

Lower-prioritymulti: thread context through FetchPaymentby ziggie · 25d05be0 · Feb 25, 2026 · 11 filesMessage 45 · ThinInformational 15Details
Commit message · ziggie

multi: thread context through FetchPayment

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100

This commit is a straightforward internal refactoring: it adds a context.Context parameter to the FetchPayment function and threads it through callers. Contexts allow operations to be cancelled or timed out, but the commit does not change any behavior, fix a bug, or close a security hole. It is not a security patch.

Lower-prioritymulti: thread context through DeletePaymentsby ziggie · 563a2ac9 · Feb 25, 2026 · 6 filesMessage 45 · ThinInformational 18Details
Commit message · ziggie

multi: thread context through DeletePayments

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 18/100

This change threads a request-scoped cancellation signal (called a 'context') through the DeletePayments database operation. Previously the SQL backend used a placeholder context.TODO(), which meant long-running payment deletion requests could not be cancelled by the caller. The change itself is a straightforward plumbing improvement and does not appear to fix an exploitable vulnerability.

Lower-prioritydocs: add release-notesby ziggie · fcb8929e · Feb 25, 2026 · 1 fileMessage 40 · ThinInformational 15Details
Commit message · ziggie

docs: add release-notes

40/100 · ThinMessage clarity
✓ Subject identifies a change✓ 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 adds a single line to the release notes document, describing a completed code change (finalizing SQL payments implementation and enabling tests). It does not modify any program code, configuration, or security mechanism.

Lower-prioritymulti: thread context through DeletePaymentby ziggie · bc15d4bb · Feb 25, 2026 · 5 filesMessage 45 · ThinInformational 18Details
Commit message · ziggie

multi: thread context through DeletePayment

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 18/100

This change threads a request context through the DeletePayment database operation. In practical terms, it lets the database operation respect cancellation or timeout signals from the original RPC request, rather than running with a blank 'do nothing' context. The SQL backend now uses the real request context, while the older key-value backend still ignores it for now. This is a code-quality and robustness improvement, not a fix for an active security vulnerability.

Lower-prioritypaymentsdb: add unit test for FetchInflightPayments methodby ziggie · dfacb9ec · Feb 25, 2026 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · ziggie

paymentsdb: add unit test for FetchInflightPayments method

60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only adds new automated tests for an existing database method called FetchInFlightPayments. It does not change any production code, so it cannot introduce or fix a security vulnerability on its own.

Lower-priorityitest: fix list_payments accuracy edge caseby ziggie · f518931c · Feb 25, 2026 · 1 fileMessage 45 · ThinInformational 13Details
Commit message · ziggie

itest: fix list_payments accuracy edge case

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 13/100

This commit only changes an integration test file. It adjusts how timestamps are rounded when testing the ListPayments and ListInvoices features, so the tests pass reliably across different database backends. There is no change to production code, no security fix, and no vulnerability being patched.

Lower-prioritypaymentsdb: add firstcustom records to unit testsby ziggie · e40c8df1 · Feb 25, 2026 · 1 fileMessage 55 · ThinInformational 15Details
Commit message · ziggie

paymentsdb: add firstcustom records to unit tests

55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only updates a unit test file to include sample custom records when creating test payment data. It does not change any production code, network behavior, or security logic. There is no security issue here.

Lower-prioritypaymentsdb: make specific kv store tests only available via build tagby ziggie · 5f1f4135 · Feb 25, 2026 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · ziggie

paymentsdb: make specific kv store tests only available via build tag

60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only adds a Go build tag to a test file so that certain key-value store tests run only when neither SQLite nor PostgreSQL test modes are active. It is a test-configuration change with no effect on production code, user-facing behavior, or security.

AI review queuedlnrpc: fix linterby ziggie · ea4e183c · Feb 25, 2026 · 1 fileMessage 28 · OpaqueInformational 15Details
Commit message · ziggie

lnrpc: fix linter

28/100 · OpaqueMessage clarity
✓ Subject identifies a change! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100

This commit removes one blank line in a test file to satisfy a code linter. It does not change any program logic, behavior, or security-relevant code.

AI review queuedpaymentsdb: add more commentsby ziggie · bfd59aac · Feb 25, 2026 · 2 filesMessage 35 · OpaqueInformational 15Details
Commit message · ziggie

paymentsdb: add more comments

35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100

This commit only adds explanatory comments to two source files. No code behavior is changed, so it cannot introduce or fix a security vulnerability on its own.

Lower-prioritypaymentsdb: fix test case before testing sql backendby ziggie · 2eadbfb5 · Feb 25, 2026 · 2 filesMessage 95 · StrongInformational 15Details
Commit message · ziggie

paymentsdb: fix test case before testing sql backend

We are now not supporting the LegacyPayload for the onion packet
anymore. All payments and their onion payload need to be tlv
encoded. The sql backend assumes tlv so we have to always set the
in memory presentation of a hop where the legacy parameter is still
available but deprecated to false, otherwise the hops will not be
equal and unit tests for the sql backend will fail when switched
on in the next commits.

95/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
AI analysis · Informational 15/100

This is a test-only adjustment that updates a fake payment route used in unit tests so it matches the new real-world behavior of LND: legacy onion payloads are no longer supported, only modern TLV-encoded payloads. It also adds a code comment and a TODO about eventually removing the now-deprecated LegacyPayload field. There is no runtime security fix here.

Lower-prioritypaymentsdb: introduce a harness interfaceby ziggie · 080fd78f · Feb 25, 2026 · 6 filesMessage 78 · AdequateInformational 15Details
Commit message · ziggie

paymentsdb: introduce a harness interface

The design of the sql and kv db are a bit different. A harness
interface is introduced which allows us to unit most of the test
and keep the backend specific tests at a minimum.

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only reorganizes test code for the payments database. It introduces a small test helper interface so the same unit tests can run against both the older key-value (KV/Bolt) backend and the newer SQL backend. No production code is changed, and nothing about how real user payments are handled is modified.

Lower-prioritypaymentsdb: add harness to run payment db agnostic testsby ziggie · 570863ca · Feb 25, 2026 · 3 filesMessage 95 · StrongInformational 15Details
Commit message · ziggie

paymentsdb: add harness to run payment db agnostic tests

In commit adds the harness which will be used to run db agnostic
tests against the kv and sql backend. We have adopted all the
unit tests so far so that with this commit all the payment tests
not specifically put into the kv_store_test.go should all pass
for all backends.

95/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only adds test helper code for the payments database. It introduces build-tag-guarded test files that let the same payment database tests run against either the existing key-value backend, a SQLite backend, or a PostgreSQL backend. There is no change to production code, user-facing behavior, or security-sensitive logic.

Lower-prioritypaymentsdb: remove kvstore from sql db implementationby ziggie · 9ad3f219 · Feb 25, 2026 · 1 fileMessage 85 · StrongInformational 15Details
Commit message · ziggie

paymentsdb: remove kvstore from sql db implementation

Now that every method of the interface was implemented we can
remove the embedded reference we put into place for the sql store
implementation so that the interface would succeed. This is now
removed.

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 removes a leftover placeholder that made a new SQL-based payment database fall back to an older key-value store while its own methods were still being written. Now that all required methods are implemented, the fallback is no longer needed. There is no security issue here—this is a normal cleanup of completed refactoring work.