EP
← All projectsElements Project

Core Lightning

Modular C implementation of the Lightning Network protocol and node stack.

BitcoinLightning NetworkActive incident
Repository coverage

2334 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.

228security candidates319second-pass queue1977AI analyses
103commits · 30 days
223commits · 60 days
710commits · 180 days
1582commits · 365 days
Backfill bands
Aug 5 → Feb 61049 seen37 candidatesComplete
Feb 6 → Jun 6579 seen10 candidatesComplete
Jun 6 → Jul 678 seen1 candidatesComplete
Jul 6 → Aug 5147 seen16 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.

71/100 average clarity
631Strong · 80–100
1400Adequate · 60–79
272Thin · 40–59
31Opaque · 0–39
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
cdecker331217581
daywalker9019315113471
Níckolas Goline961252376
Amperstrand322278
Rusty Russell96977961173
Sangbida Chaudhuri18537157167
Vincenzo Palazzo19714185
Lagrang3115679170
dovgopoly18016165
Dusty Daemon821378066
ShahanaFarooqui931093063
Peter Neuroth1509110074
Analysis record

Published AI watches

Last scanned 29 minutes ago

Informational 15 AI analysisMessage 85 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

doc: bring lightning-downgrade's version list up to v26.12.

This commit only updates documentation. It adds new version entries to the manual page for the lightning-downgrade tool and mentions the tool in the upgrade guide. No code, database logic, or security behavior is changed.

2e7a9f5aby Ken Sedgwick+9−12 files
No security note in commit
Informational 23 AI analysisMessage 66 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

Makefile: install lightning-downgrade.

This is a packaging/build fix, not a security vulnerability. The `lightning-downgrade` utility was being compiled but accidentally left out of the list of programs installed by `make install`. As a result, official release archives contain…

06ea9ba0by Ken Sedgwick+1−01 file
No security note in commit
Low 27 AI analysisMessage 83 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: create bwatch tables before backfilling them

This commit fixes a database upgrade bug in Core Lightning. Wallets created with version v26.06.10 were missing two new tables (our_outputs and our_txs) because they skipped the migrations that create them. When users later upgraded, a fol…

Database migration failure could prevent node startup after upgradeFixes missing table creation before data backfillAdds regression test for upgrade path from v26.06.10
ce2a6836by daywalker90+105−02 files
No security note in commit
Informational 15 AI analysisMessage 5 · Opaque
EP Elements ProjectCore Lightning BitcoinLightning Network

v26.12rc1

This commit is a routine version bump from v26.06.10 to v26.12rc1 for Core Lightning. It only updates version strings in packaging files, a changelog, and a lockfile. There are no code changes that introduce, fix, or modify any security-se…

4002c4e9by Níckolas Goline+164−1110 files
No security note in commit
Low 30 AI analysisMessage 68 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: store payment failure details per groupid

This commit fixes a database bug in Core Lightning where failure details for a payment attempt were being overwritten by later retry attempts that shared the same payment identifier fragment. The fix makes the failure record match on an ad…

Data integrity bug causing incorrect error reporting across payment retry groupsNo memory safety, authentication, authorization, or cryptographic issues presentNo external input is trusted or validated differently
24082c6dby daywalker90+6−34 files
No security note in commit
Low 43 AI analysisMessage 83 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

cln-plugin: do not panic when the log writer task is gone

This commit fixes a bug in Core Lightning's Rust plugin library where a plugin could crash with a panic if it tried to log a message after the internal log-writing task had already stopped, such as during shutdown. The fix makes the plugin…

panic on send failure replaced with stderr fallbacklog message no longer silently dropped on writer task exitunit test added for dropped-receiver scenario
8661ffabby cdecker+29−11 file
No security note in commit
Informational 15 AI analysisMessage 90 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

docs: explain hsmtool HTLC recovery

This commit only adds documentation to the manual page for an existing command-line tool (hsmtool). It explains how to recover funds from old Lightning payment commitments (HTLCs) after losing channel state. There are no code changes, no n…

f90c140dby Sangbida Chaudhuri+85−01 file
No security note in commit
Informational 15 AI analysisMessage 68 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

tests: make test_delpay_works deterministic

This commit only changes a test file to make a flaky test more reliable. It does not modify any production code, so it has no security impact on real users.

a224ca81by daywalker90+16−161 file
No security note in commit
Informational 20 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

doc: say that listtransactions gives blockheight 0 for a tx not in a block

This commit only updates documentation to explain that the `listtransactions` command reports a block height and transaction index of 0 when a transaction is not currently in a block (for example, because it hasn't been mined yet or was re…

bc281be3by Peter Neuroth+4−42 files
No security note in commit
Informational 20 AI analysisMessage 50 · Thin
EP Elements ProjectCore Lightning BitcoinLightning Network

fixup! pyln-client: don't crash Millisatoshi.to_approx_str() on zero

This is a small bug fix in a Python helper library used by Core Lightning. The Millisatoshi.to_approx_str() method previously crashed with a math error when converting a zero amount to a human-readable string. The patch makes zero return "…

No security-relevant signals presentFix is a routine correctness/robustness improvement
02612ed5by Amartya Singh+4−31 file
No security note in commit
Moderate 62 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: reject unmodifiable PSBTs in addpsbtoutput/addpsbtinput

This update fixes a crash in two wallet commands, addpsbtoutput and addpsbtinput. These commands let users add extra transaction outputs or inputs to a PSBT (a Bitcoin transaction planning file). If a user supplied a PSBT whose version 2 '…

Daemon crash (assertion failure) on crafted/strict PSBT inputMissing validation of PSBT v2 modifiable flags before mutationUser-controlled input directly passed to libwally without precondition check
42472816by daywalker90+14−12 files
Vendor flagged security relevance
Moderate 59 AI analysisMessage 83 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

tests: show addpsbtoutput/addpsbtinput crash on an unmodifiable v2 PSBT

This commit only adds a new test case that demonstrates two Core Lightning commands, addpsbtoutput and addpsbtinput, crash with an internal assertion when given a v2 PSBT that does not allow adding inputs or outputs. The test is marked as …

Daemon abort due to failed assertion in PSBT helper functionsRPC commands addpsbtoutput and addpsbtinput lack validation of PSBT modifiability flags before calling libwallyPotential denial-of-service vector: any caller able to submit a crafted v2 PSBT can crash lightningd
42e268abby daywalker90+60−01 file
No security note in commit
Informational 20 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

pyln-client: don't crash Millisatoshi.to_approx_str() on zero

This commit fixes a minor bug in Core Lightning's Python client library where calling a pretty-printing method on a zero-amount payment would crash with a ValueError. It is a routine correctness fix, not a security vulnerability. There is …

5ebe365dby Amartya Singh+3−12 files
No security note in commit
Moderate 59 AI analysisMessage 83 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

dualopen and splicing: add minimal verification of tx_signatures

This commit adds missing safety checks in Core Lightning when a peer sends signatures for opening or splicing a dual-funded Lightning channel. Before the patch, the software accepted peer-provided transaction witnesses without verifying th…

Missing input validation on peer-provided witness dataBOLT-2 compliance fix for tx_signaturesRejection of empty witness stacks
c6be4f71by Lagrang3+633−97 files
Vendor flagged security relevance
Moderate 54 AI analysisMessage 85 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

channeld: abort_channels no longer fails a channel with a signed splice

This fix prevents a user-issued 'abort channels' command from incorrectly failing a Lightning channel when a splice transaction has already been signed. Previously, the code would pass the latest in-flight splice to a routine that aborts i…

Denial-of-service/availability impact: user-initiated abort could inadvertently fail a funded channelProtocol compliance fix: avoids sending tx_abort after tx_signatures, which BOLT 2 forbidsState-handling bug in splice negotiation lifecycle
c87f5573by Andezion+22−11 file
No security note in commit
Moderate 51 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

lightningd: fix crash on mutual close of an unconfirmed dual-funded channel

This update fixes a bug where a specific type of Lightning channel close could crash the node. It only happens when both parties cooperatively close a dual-funded channel that has not yet been confirmed and has gone through a funding bump …

NULL pointer dereference leading to daemon crash (denial of service)Crash occurs in cooperative-close path for unconfirmed dual-funded/RBF channelsFix uses canonical channel funding key instead of splice-only field
555143beby Sangbida Chaudhuri+9−31 file
Vendor flagged security relevance
High 74 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

cln-grpc: reject malformed request values instead of panicking

This commit fixes a security bug in Core Lightning's gRPC plugin (cln-grpc). Previously, a malformed request from a gRPC client could crash the plugin: bad public keys, hashes, secrets, channel IDs, or enum values triggered Rust 'unwrap()'…

Denial-of-service via malformed gRPC request causing tonic worker task panicDenial-of-service via std::process::exit(1) in ProofField conversion on missing oneofSilent integer truncation of u16/u8 fields via 'as' casts
b2703436by daywalker90+1558−12135 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 51 · Thin
EP Elements ProjectCore Lightning BitcoinLightning Network

nix: drop protobuf again

This commit removes the protobuf package from the Nix build environment because it is no longer needed. A previous change made the cln-grpc component use its own bundled protoc compiler instead of relying on the system one. The Python bind…

a0459eeeby Peter Neuroth+0−11 file
No security note in commit
Informational 15 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

make: check gRPC protos for breaking changes against the last release

This commit adds a new automated check to the project's build process that compares gRPC protocol definitions against the last release to catch accidental breaking changes early. It does not change any runtime code, fix a bug, or introduce…

db5fea70by daywalker90+43−84 files
No security note in commit
Repository ledger

Explore captured commits

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

Lower-priorityxpay: process channel_update from error for the current payment.by Rusty Russell · 1529b2b6 · May 11, 2026 · 2 filesMessage 73 · AdequateLow 37Details
Commit message · Rusty Russell

xpay: process channel_update from error for the current payment.

Applying it globally as `pay` did risks leaking information, but applying
it for retries doesn't really. And doing that is fairly easy with layers.

Changelog-Added: Protocol: `xpay` will now update for the current payment if it gets a `channel_update` in an error message.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 37/100

This change improves the 'xpay' payment plugin in Core Lightning so that when a payment attempt fails and the error message contains a channel update, xpay uses that update only for the current payment's retry instead of applying it globally. The commit message explicitly says the old global behavior risked leaking information, and the new scoped behavior reduces that privacy risk while still helping payments succeed.

Lower-priorityxpay: when acting as pay, imitate its idempotent behavior.by Rusty Russell · 48b37869 · May 11, 2026 · 1 fileMessage 65 · AdequateLow 33Details
Commit message · Rusty Russell

xpay: when acting as pay, imitate its idempotent behavior.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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

This change makes the newer 'xpay' payment plugin behave like the older 'pay' plugin when an invoice has already been paid. Previously, if xpay tried to pay an invoice that was already settled, it would give up with an error. Now it looks up the previous successful payment details and returns them as if the current request succeeded. This is a compatibility fix to avoid surprising users and callers who expected the old pay plugin's idempotent behavior.

Lower-prioritypyln: add getroutes wrapper to pyln-client, add single_route helper to pyln-testing.by Rusty Russell · 63e67d45 · May 11, 2026 · 2 filesMessage 75 · AdequateInformational 15Details
Commit message · Rusty Russell

pyln: add getroutes wrapper to pyln-client, add single_route helper to pyln-testing.

And remove the two getroute() calls inside pyln-testing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

75/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit adds a new Python helper for a Lightning RPC command and updates test utilities to use it. There is no security issue visible in the change itself.

Lower-prioritytests: use getroutes, not getroute (simple cases)by Rusty Russell · 4e852086 · May 11, 2026 · 5 filesMessage 78 · AdequateInformational 15Details
Commit message · Rusty Russell

tests: use getroutes, not getroute (simple cases)

We add a nice getroutes wrapper and use it to replace the simple
getroute() calls which simply hand the result to sendpay().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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 changes test code. It replaces direct calls to the older getroute() RPC helper with a new single_route() wrapper that internally uses the newer getroutes() API. There is no change to production code, no bug fix, and no security relevance.

Lower-prioritypytest: convert remaining getroute cases.by Rusty Russell · 96e9bc7c · May 11, 2026 · 4 filesMessage 78 · AdequateInformational 15Details
Commit message · Rusty Russell

pytest: convert remaining getroute cases.

Excluding explicit getroute tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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 updates test code. It replaces old calls to the `getroute` RPC with newer helper methods like `single_route` and `getroutes`, and updates the field names used in test assertions (for example, `amount_msat` becomes `amount_out_msat`). There is no change to the actual Core Lightning node software, so it cannot affect real users or introduce a security vulnerability.

Lower-prioritypyln-testing: allow bitcoind mocks to return None to mean "don't mock".by Rusty Russell · 363a1778 · May 11, 2026 · 1 fileMessage 75 · AdequateInformational 15Details
Commit message · Rusty Russell

pyln-testing: allow bitcoind mocks to return None to mean "don't mock".

Good for conditional mocks, like in next patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

75/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100

This is a small change to a Python testing helper used only in Core Lightning's test suite. It lets a fake Bitcoin RPC call return None as a signal to fall through to the real RPC call. There is no production code affected and no security issue visible in the patch.

Lower-prioritygetroute: deprecate in favor of `getroutes`by Rusty Russell · e6575520 · May 11, 2026 · 6 filesMessage 68 · AdequateInformational 15Details
Commit message · Rusty Russell

getroute: deprecate in favor of `getroutes`

Changelog-Deprecated: JSON-RPC: `getroute` (use `getroutes` with layers `["auto.localchans","auto.sourcefree"]` and `maxparts=1`) (since v25.09).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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

This commit simply marks an older command, getroute, as deprecated and tells users to switch to a newer command, getroutes. It does not fix a bug or change security behavior. The old command still works for now, but tests that use it must explicitly allow deprecated APIs. There is no security issue here.

Lower-prioritykeysend: deprecate in favor of `xkeysend`.by Rusty Russell · 98315531 · May 11, 2026 · 9 filesMessage 68 · AdequateInformational 20Details
Commit message · Rusty Russell

keysend: deprecate in favor of `xkeysend`.

Changelog-Deprecated: JSON-RPC: `keysend` (use `xkeysend`). `xkeysend` will take over `keysend` in v27.03.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 20/100

This commit simply marks the old `keysend` RPC command as deprecated and tells users to switch to a newer command called `xkeysend`. It updates documentation, schemas, and test settings so that tests continue to work while the old command is still available. There is no security bug being fixed here.

Lower-priorityxpay: keep track of ongoing payments, to implement attempt_ongoing()by Rusty Russell · 560b0165 · May 11, 2026 · 2 filesMessage 73 · AdequateInformational 15Details
Commit message · Rusty Russell

xpay: keep track of ongoing payments, to implement attempt_ongoing()

This will help when we implement listpays (next) to be xpay-aware.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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 straightforward internal bookkeeping change in the xpay plugin. It adds a list that tracks currently active payments and a helper function to check whether a payment is still in progress. There is no security fix or vulnerability here; it is preparation for a future feature (making listpays aware of xpay payments).

Lower-priorityplugins: move listpays from pay plugin to xpay plugin.by Rusty Russell · ed42adc9 · May 11, 2026 · 6 filesMessage 73 · AdequateInformational 21Details
Commit message · Rusty Russell

plugins: move listpays from pay plugin to xpay plugin.

This will make life easier when we remove the pay plugin, but also fixes
an issue where `listpays` can indicate ongoing payments are failed,
even though xpay is still working on it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 21/100

This change moves the `listpays` command from the older `pay` plugin to the newer `xpay` plugin. The practical effect is that when you ask your node to list recent payments, it now checks whether `xpay` is still retrying a payment before marking it as failed. Previously, `listpays` could wrongly report an ongoing payment as failed because it only looked at the old `pay` plugin's state. There is no new attack or remote exploit here; it is a bug-fix/refactor that improves reporting accuracy.

AI review queuedpay: deprecate pay and paystatus.by Rusty Russell · eebc6eea · May 11, 2026 · 20 filesMessage 78 · AdequateInformational 20Details
Commit message · Rusty Russell

pay: deprecate pay and paystatus.

Use xpay and listpays.

Some tests which are pay/paystatus specific simply enabled deprecations.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Deprecated: JSON-RPC: `pay` and `paystatus`: use `xpay`, `listpays` (or `xpay`'s notifications for details of attempts). `pay` will be replaced by `xpay` in v27.03.

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
parser or protocol pathsecond-pass: unusually broad changesecond-pass: security-sensitive path
AI analysis · Informational 20/100

This commit is a routine API deprecation notice. It marks the old 'pay' and 'paystatus' JSON-RPC commands as deprecated and tells users to switch to the newer 'xpay' and 'listpays' commands. The commands still work if a node operator explicitly allows deprecated APIs. There is no security bug being fixed here.

Lower-priorityupdate-mocks: make handling of mocks in nested files deterministic.by Rusty Russell · 86f45951 · May 11, 2026 · 2 filesMessage 88 · StrongInformational 15Details
Commit message · Rusty Russell

update-mocks: make handling of mocks in nested files deterministic.

update-mocks searches for prototypes, looking first in the local
directory, then in */*.h, and takes the first. In the case of
plugins/bkpr/test/run-currencyrate_str.c referring to
jsonrpc_request_start_, this means it could get either the one in
libplugin (correct) or the one in lightningd (wrong!), depending on
directory order randomness.

Hack it a bit harder, to look one up from the local dir before */*.h.
This is redundant in most cases, but not for three-deep-nested dirs
like this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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
AI analysis · Informational 15/100

This commit fixes a build-tool quirk that could pick the wrong function prototype when generating test mock stubs for deeply nested source directories. The wrong prototype would produce a test stub with mismatched function parameters, which could cause test compilation to fail or tests to behave incorrectly. It is a build/test reliability fix, not a directly exploitable security vulnerability in running software.

Lower-priorityinjectpaymentonion: add explicit `destination` option.by Rusty Russell · eb4655ca · May 11, 2026 · 9 filesMessage 73 · AdequateInformational 17Details
Commit message · Rusty Russell

injectpaymentonion: add explicit `destination` option.

This allows us to correctly annotate the destination in listsendpays
even if invstring isn't set (xkeysend).

Changelog-Added: JSON-RPC: `injectpaymentonion` parameter `destination`.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 17/100

This commit adds a new optional 'destination' parameter to the 'injectpaymentonion' JSON-RPC command in Core Lightning. It is a feature addition that lets callers explicitly tell the node the final recipient of a payment, so payment-listing commands show the right destination even when no invoice string is provided. There is no indication this fixes a security vulnerability.

Lower-priorityxpay: add xkeysend support.by Rusty Russell · 78721c7f · May 11, 2026 · 5 filesMessage 58 · ThinInformational 24Details
Commit message · Rusty Russell

xpay: add xkeysend support.

This uses askrene, so it benefits from previous payment experience.

Changelog-Added: JSON-RPC: `xkeysend` command for keysend with modern routing support.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

58/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context
AI analysis · Informational 24/100

This commit adds a new command called xkeysend to Core Lightning, which lets users send money to another node without needing an invoice. The code itself is a feature addition, not a bug fix. It includes a note that keysend payments do not provide cryptographic proof-of-payment, which is a known limitation of the keysend design. There is no direct evidence in the commit of a security vulnerability being fixed or introduced.

Lower-prioritypytest: test xkeysend as thoroughly as keysend.by Rusty Russell · 67a4cb77 · May 11, 2026 · 4 filesMessage 70 · AdequateInformational 15Details
Commit message · Rusty Russell

pytest: test xkeysend as thoroughly as keysend.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only adds Python test coverage and a new client-side helper for an existing RPC command called xkeysend. There is no change to the actual Core Lightning daemon code that handles payments, so it cannot by itself introduce a security vulnerability. It is a testing and client-library addition.

Lower-prioritypytest: speed up test_keysend_description_size_limitby Rusty Russell · b5327a20 · May 11, 2026 · 1 fileMessage 63 · AdequateInformational 15Details
Commit message · Rusty Russell

pytest: speed up test_keysend_description_size_limit

Starting up two nodes for each variant is slow, so do this internally.
Also check that the descriptions are correct, not just that there is
some invoice!

Before:
================================ 7 passed in 75.63s (0:01:15) ================================

After:
===================================== 1 passed in 12.62s =====================================

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

63/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit is a straightforward test-only speedup. It refactors a single pytest test so it creates one pair of test nodes and loops through several payload lengths internally, instead of launching fresh nodes for every length. It also adds a stronger assertion checking invoice descriptions and amounts. There is no change to production code, no security fix, and no security-relevant behavior change.

Lower-priorityrenepay: deprecate.by Rusty Russell · 6eb7dc04 · May 11, 2026 · 6 filesMessage 51 · ThinInformational 15Details
Commit message · Rusty Russell

renepay: deprecate.

I think Eduardo and I stole all the best bits to make xpay and askrene.

I simply enabled deprecations on all the renepay tests.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

51/100 · ThinMessage clarity
✓ Subject identifies a change✓ Provides detailed explanatory context✓ Mentions testing or verification! Too few words to establish purpose
AI analysis · Informational 15/100

This commit simply marks the 'renepay' and 'renepaystatus' commands as deprecated. It adds warning text to documentation, lists the commands in the deprecated-features guide, and updates tests to explicitly allow deprecated APIs so they keep passing. There is no security fix or vulnerability here.

Lower-priorityxpay: add extra_tlvs support (unused for now).by Rusty Russell · 09ff5ed6 · May 11, 2026 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Rusty Russell

xpay: add extra_tlvs support (unused for now).

This adds them to the final onion (but it's always NULL for now).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit adds plumbing for optional extra data fields in Lightning payment onions, but explicitly leaves the feature unused. The new extra_tlvs field is always set to NULL, so no behavior changes for users today. It appears to be preparatory work for future 'keysend' style payments.

Lower-prioritypytest: use xpay, not pay in misc tests.by Rusty Russell · 7f6a3339 · May 11, 2026 · 17 filesMessage 78 · AdequateInformational 15Details
Commit message · Rusty Russell

pytest: use xpay, not pay in misc tests.

This usually means changing the error strings, where we test them, and
avoiding `paystatus`.

Other changes:
1. Completely get rid of `test_custom_notification_topics`: xpay tests do this
already.
2. Add xpay wrapper to pyln-client so we can mix named and unnamed args.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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 changes the project's internal test suite and a Python test helper. It replaces calls to the older `pay` RPC command with the newer `xpay` command in many tests, updates expected error messages, removes one obsolete test, and adds an `xpay` wrapper to the pyln-client library so tests can call it more easily. There is no change to the actual Core Lightning daemon or wallet code that handles real payments, so this does not fix or introduce a security vulnerability.

Lower-prioritypytest: make pay tests more robust.by Rusty Russell · 720fb7a7 · May 11, 2026 · 3 filesMessage 78 · AdequateInformational 15Details
Commit message · Rusty Russell

pytest: make pay tests more robust.

1. Don't assume they send group 0 (thus waitsendpay works). waitsendpay should be unnecessary
after pay anyway.
2. Don't use pay for test_multichan_stress, since it relies on pay not learning that
the channel is unreliable.
3. Use xpay for test_listhtlcs_wait, since we want no shadow.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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 changes test code in the Core Lightning project's test suite. It makes three payment-related tests more robust by removing unnecessary wait calls, switching from high-level 'pay' to lower-level 'sendpay' in one stress test, and using 'xpay' with shadow routes disabled in another. There are no changes to production code, no bug fixes, and no security-relevant behavior changes.

Lower-prioritysendpay: ignore unknown `route` fields, but take the `getroutes`-style ones.by Rusty Russell · 8dd682dc · May 11, 2026 · 9 filesMessage 73 · AdequateLow 32Details
Commit message · Rusty Russell

sendpay: ignore unknown `route` fields, but take the `getroutes`-style ones.

Changelog-Added: JSON-RPC: `sendpay` now accepts one of the `paths` returned from `getroutes` as its `route` parameter.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 32/100

This commit updates the Core Lightning `sendpay` RPC command so it can accept route objects produced by the newer `getroutes` command, in addition to the older `getroute` format. It makes several route fields optional and adds aliases (for example, `short_channel_id_dir` as a newer name for `channel`). The change is primarily an API compatibility and feature enhancement. There is no direct evidence in the commit that this fixes a security vulnerability, but loosening input validation and making previously required fields optional can sometimes hide or introduce edge-case bugs, so it warrants a conservative defensive review.

Lower-priorityxpay: take over pay invocations by default.by Rusty Russell · afea3813 · May 11, 2026 · 7 filesMessage 90 · StrongLow 39Details
Commit message · Rusty Russell

xpay: take over pay invocations by default.

The main change here is the error messages got better. Where that was
the case, and the test was not completely redundant with existing xpay
tests, I explicitly converted to calls to xpay (meaning the tests
will be kept when `pay` is finally removed).

Test changes:
1. deschash checking is old-pay only, keep that there.
2. Add debug logs for checks for using forwarding via scid in injectpaymentonion.
3. Don't assert that not all sendpays should have the invoice string: xpay does not try to be clever there.
4. We no longer check if invoices are already paid before routing, since injectpaymentonion will catch that for us.
5. Removed `test_pay_get_error_with_update` which has xpay equiv.

Changelog-Changed: JSON-RPC: `xpay` now handles `pay` command by default (use `xpay-handle-pay=false` to prevent this)
Changelog-Removed: JSON-RPC: `exclude` parameter to `pay` (when `xpay-handle-pay` is True): craft a layer with desired modifications and pass it to `xpay` `layers`.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

90/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
AI analysis · Low 39/100

This commit changes Core Lightning so that the newer 'xpay' plugin silently handles most calls to the older 'pay' command by default. It is a feature migration, not a security patch. The old 'pay' command is marked deprecated, and some of its options (like 'exclude') are removed when xpay takes over. The change is mostly about routing and error-message behavior, not about fixing a vulnerability.

Lower-priorityCCAN: update to get json_escape_dup helper.by Rusty Russell · f8c42de4 · May 11, 2026 · 4 filesMessage 60 · AdequateInformational 12Details
Commit message · Rusty Russell

CCAN: update to get json_escape_dup helper.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 12/100

This commit imports a new helper function, json_escape_dup, from the CCAN library into Core Lightning. It simply adds a way to duplicate (copy) an already-escaped JSON string object. There is no visible bug fix, behavior change, or security patch in the diff itself.

Lower-prioritypytest: use maxparts=1 not the soon-to-be-deprecated "auto.no_mpp_support" layer.by Rusty Russell · d62c3833 · May 11, 2026 · 1 fileMessage 65 · AdequateInformational 15Details
Commit message · Rusty Russell

pytest: use maxparts=1 not the soon-to-be-deprecated "auto.no_mpp_support" layer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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

This is a routine test-only change in Core Lightning. It updates pytest test code to stop using a soon-to-be-deprecated routing layer name ('auto.no_mpp_support') and instead uses a new 'maxparts=1' parameter to achieve the same test behavior. There is no change to production code, no security fix, and no vulnerability.

Lower-priorityxpay: handle localinvreqid and label parameters when we're called as `pay`.by Rusty Russell · 6da85381 · May 11, 2026 · 2 filesMessage 65 · AdequateInformational 18Details
Commit message · Rusty Russell

xpay: handle localinvreqid and label parameters when we're called as `pay`.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

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

This change fixes a small compatibility gap in the xpay plugin, which can take over the older `pay` command. Previously, if a user supplied a `label` or `localinvreqid` argument to `pay`, xpay would silently drop those arguments before forwarding the payment. Now it preserves and forwards them. This is mainly a functional bug fix; the dropped arguments could cause user labels or local invoice request tracking to be lost, but there is no direct evidence of a security vulnerability.