EP
← All projectsElements Project

Core Lightning

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

BitcoinLightning NetworkActive incident
Repository coverage

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

184security candidates280second-pass queue1894AI analyses
56commits · 30 days
193commits · 60 days
678commits · 180 days
1671commits · 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.

70/100 average clarity
489Strong · 80–100
1231Adequate · 60–79
259Thin · 40–59
30Opaque · 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.
cdecker14910384
Níckolas Goline63844277
Rusty Russell96475958172
daywalker90118895165
Lagrang386578170
Vincenzo Palazzo13411182
dovgopoly15015164
Sangbida Chaudhuri14931146066
Dusty Daemon821378066
ShahanaFarooqui931093063
Peter Neuroth1024101071
Christian Decker36436072
Analysis record

Published AI watches

Last scanned 18 minutes ago

Informational 15 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

contrib: add jaonoctus's signing key

This commit simply adds a new person's PGP public-key fingerprint to the list of trusted release signers in two documentation files. It does not change any code, fix any bug, or alter any security behavior of the software itself.

41278b4eby jaonoctus+2−02 files
No security note in commit
Informational 15 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: fixed timestamps for invented bookkeeper deposits

This is a tiny internal fix to make a bookkeeping migration produce stable event ordering. It changes the timestamp used when creating historical 'deposit' records during a one-time database migration, so the records sort consistently with…

498e5086by daywalker90+2−01 file
No security note in commit
Informational 21 AI analysisMessage 85 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

docs: document missing and fix erroneous JSON-RPC error codes

This commit is a documentation-only cleanup of the JSON-RPC command help files. It corrects which numeric error codes are listed for each command so the published schemas match what the software actually returns. No program logic, validati…

Documentation-only change with no executable code modificationsCorrects RPC schema error-code metadata to match actual handler behaviorNo change to input parsing, authorization, cryptography, or network behavior
d1b6963bby daywalker90+204−1224 files
No security note in commit
Low 46 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

channeld: initialize tx_sigs_allowed on startup

This commit fixes a bug where a setting that controls whether unexpected transaction signatures are allowed was not initialized when the channel daemon starts. If a peer sent such signatures before the channel was fully ready, the program …

use of uninitialized variableundefined behavior (invalid bool load)network-triggered code path
c09c4520by Erick Cestari+1−01 file
No security note in commit
Informational 15 AI analysisMessage 100 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

ci: fix the coverage nightly's profile handling

This commit fixes the project's internal nightly code-coverage CI workflow. It changes how test coverage files are collected, ensures the same LLVM compiler version is used to generate and merge coverage data, and uploads a Codecov-compati…

5685c9a3by cdecker+12−211 file
No security note in commit
Low 37 AI analysisMessage 78 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

schemas: make required fields match the code

This commit is a large cleanup of Core Lightning's API schemas, generated RPC bindings, and related plugin code. The stated goal is to make the documented 'required' fields match what the C code actually always produces or expects. In prac…

Large schema-only change with no accompanying security advisory or CVEOne semantic change to plugin hook response: invoice_payment hook can now reject with only failure_message and no resultMany fields change from optional to required in public RPC/protobuf interfaces
ddbd2963by daywalker90+1786−173950 files
No security note in commit
Informational 15 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

doc: document error 313 on every command which can return it

This commit only updates documentation. It adds error code 313 to the documented error lists for several Core Lightning commands (fundpsbt, utxopsbt, txprepare, multiwithdraw, and upgradewallet). The error code already existed in the code …

a34b9758by Peter Neuroth+30−86 files
No security note in commit
Low 25 AI analysisMessage 88 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

tools/build-release.sh: name the checksum file when verifying the signature

This commit fixes a release-script check that verifies the cryptographic signature on a file of checksums. Previously, the script only told GPG to verify the signature file itself. If someone replaced that signature file with an inline-sig…

Incorrect cryptographic verification logic in release toolingPotential false-positive signature verification with inline-signed .asc substitutionRelease-integrity hardening
8e495707by Peter Neuroth+5−21 file
No security note in commit
Low 42 AI analysisMessage 95 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

doc: pass the manifest explicitly to gpg --verify

This commit updates Core Lightning's release documentation to tell users and release managers to run gpg --verify with both the signature file and the manifest file named explicitly. The old one-argument form can silently succeed even if t…

Verification bypass risk in release artifact validationgpg --verify single-argument form can exit 0 without reading the intended manifestDocumentation-only hardening of release process
2dee8699by Peter Neuroth+9−62 files
Vendor flagged security relevance
Low 25 AI analysisMessage 58 · Thin
EP Elements ProjectCore Lightning BitcoinLightning Network

Cargo.lock: update dependencies

This commit is a routine update to the Rust dependency lock file (Cargo.lock), bumping many third-party libraries to newer patch or minor versions. The commit message gives no security reason for the update, and no verified references link…

Routine dependency refresh with no stated security rationaleUpdates to security-sensitive transitive crates (rustls, hyper, h2, tokio, webpki-roots) but no evidence these versions fix known vulnerabilitiesNo source-code changes or patch-specific fixes visible in the diff
c1551c55by daywalker90+298−2761 file
No security note in commit
High 80 AI analysisMessage 85 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

common: bound JSON nesting depth when parsing

This commit fixes a stack-overflow risk in Core Lightning's JSON parser. Before the fix, an attacker could send a valid JSON-RPC message containing thousands of nested brackets or braces. The parser's own helper functions used recursion fo…

Stack-overflow via deeply nested JSONRecursive JSON traversal without depth boundDenial-of-service vector in JSON-RPC input parsing
83f92e4bby Níckolas Goline+90−22 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 28 · Opaque
EP Elements ProjectCore Lightning BitcoinLightning Network

common: minor typo fixes

This commit only fixes typos and comment style. It changes two C-style comments from // to /* */ and corrects a grammar error in a documentation comment ('element' to 'elements'). There are no code behavior changes, no bug fixes, and no se…

273d7f02by w3lld1+3−32 files
No security note in commit
Informational 20 AI analysisMessage 90 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

pyln-testing: truncate long testnames

This change fixes a test-infrastructure bug in Core Lightning's Python testing helpers. When running tests against a PostgreSQL database, very long test names could be silently shortened by PostgreSQL, causing different test runs or nodes …

No security-relevant signal: change is in test framework code onlyFixes a test reliability issue, not a runtime vulnerabilityNo input sanitization, authentication, cryptography, or network changes
c4fe4cbaby Peter Neuroth+59−12 files
No security note in commit
Moderate 60 AI analysisMessage 73 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: exclude immature coinbase outputs from fee rescue selection

This fix prevents Core Lightning from trying to use freshly created bitcoins (immature coinbase rewards) as emergency funds for fee-bump transactions. Such a transaction would be invalid under Bitcoin's rules and would be rejected by the n…

Consensus-invalid transaction generation preventedFee rescue / CPFP failure mode mitigatedCoinbase maturity check added to coin selection
34883ff7by cdecker+5−12 files
Vendor flagged security relevance
Moderate 59 AI analysisMessage 91 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

askrene: fix crash loading node bias with description

This commit fixes a bug in Core Lightning's askrene plugin that could prevent a node from restarting. When a saved routing layer contained a node bias with a description, the plugin accidentally freed the description's memory while using i…

Use-after-free / double-take of a tal-allocated string during plugin startupDenial-of-service-like symptom: lightningd aborts before replying to init, node cannot restartFixes publicly reported issue #9433 by endothermicdev
4681177dby Vincenzo Palazzo+2−32 files
No security note in commit
Informational 12 AI analysisMessage 91 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

tests: restart the node which owns the layer in node bias test

This commit only fixes a test case so it actually exercises the intended code path. It does not change any production code, so it cannot introduce or fix a real-world security vulnerability by itself. The test change is a reproducer for a …

0f3f67a0by Vincenzo Palazzo+3−21 file
No security note in commit
High 78 AI analysisMessage 68 · Adequate
EP Elements ProjectCore Lightning BitcoinLightning Network

dualopend: bound the feerates a peer opens at

This commit fixes a bug in Core Lightning's experimental dual-funded channel feature. When another node tried to open a channel, Core Lightning was not checking whether the proposed transaction fees were reasonable. A peer could request a …

Missing input validation on wire-parsed feerate fieldsPeer could induce signing and storage of feerate == 0RBF remote path allowed unbounded upward feerate walks
ba08356fby cdecker+140−04 files
Vendor flagged security relevance
High 72 AI analysisMessage 100 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

tests: regression coverage for out-of-range feerates

This commit adds regression tests for three related bugs where wildly wrong Bitcoin transaction feerates could enter Core Lightning. In the worst case, a malicious or broken fee source could make the node think a feerate was zero (due to a…

Integer overflow in feerate conversion (u32 wrap from 0xFFFFFFFF perkb to 0 perkw)Absurd feerate from external fee source bypassing sanity ceilingDatabase-stored out-of-range feerate causing startup abort/crash loop
65bdbc47by cdecker+137−02 files
No security note in commit
Moderate 64 AI analysisMessage 86 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

lightningd: don't assert on funding feerates read from the db

This update fixes a crash bug in Core Lightning. When the software tried to list details of a channel opening in progress, it could crash if a stored fee rate was extremely large or zero. The crash happened because the code used an interna…

Integer overflow in RBF escalation (u32 * 25 / 24) leading to assertion failureAssertion failure in read-only introspection RPC (listpeerchannels) causing crash-loop at startupDatabase value treated as invariant despite originating from external fee estimator
d67c4936by cdecker+72−227 files
Vendor flagged security relevance
Moderate 53 AI analysisMessage 86 · Strong
EP Elements ProjectCore Lightning BitcoinLightning Network

wallet: clamp absurd inflight funding feerates on upgrade

This commit fixes a bug where Core Lightning nodes could get stuck in a crash loop. If a node had previously stored an extremely high or zero fee rate for an in-progress channel funding operation (a 'splice' or dual-funded channel RBF), a …

Integer overflow in fee-rate calculation (u32 overflow when multiplying by 25/24)Assertion failure leading to daemon crash loop at startupDatabase migration clamps out-of-range stored funding feerates
f057c692by cdecker+34−01 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-prioritydb: don't actually create an explicit transaction for read commands.by Rusty Russell · 47ab467b · Nov 20, 2025 · 1 fileMessage 73 · AdequateInformational 15Details
Commit message · Rusty Russell

db: don't actually create an explicit transaction for read commands.

Since we are the only writer, we don't need one.

Name (time in s) Min Max Mean StdDev Median
sqlite: test_spam_listcommands (before) 2.1193 2.4524 2.2343 0.1341 2.2229
sqlite: test_spam_listcommands (after) 2.0140 2.2349 2.1001 0.0893 2.0644
Postgres: test_spam_listcommands (before) 6.5572 6.8440 6.7067 0.1032 6.6967
Postgres: test_spam_listcommands (after) 4.4237 5.0024 4.6495 0.2278 4.6717

A nice 31% speedup!

Changelog-Changed: Postgres: significant speedup on read-only operations (e.g. 30% on empty SELECTs)
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 is a performance optimization, not a security fix. The change removes an unnecessary explicit transaction wrapper around read-only database queries because the software is already the only writer to the database. The commit message and diff show only speed improvements and no security relevance.

Lower-prioritylightningd: log when we have to defer hook registration.by Rusty Russell · 576f48cb · Nov 20, 2025 · 4 filesMessage 73 · AdequateInformational 20Details
Commit message · Rusty Russell

lightningd: log when we have to defer hook registration.

If livelock ever *does* become an issue, we will see it in the logs.

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 20/100

This change only adds log messages when Core Lightning has to delay updating a plugin hook because the hook is currently in use. It does not fix or change any behavior; it is purely diagnostic observability to help detect a potential future 'livelock' problem. There is no security vulnerability being patched here.

Lower-prioritylightningd: handle large numbers of command outputs gracefully.by Rusty Russell · 8707b731 · Nov 20, 2025 · 4 filesMessage 83 · StrongLow 27Details
Commit message · Rusty Russell

lightningd: handle large numbers of command outputs gracefully.

Profiling shows us spending all our time in tal_arr_remove when dealing
with a giant number of output streams. This applies both for RPC output
and plugin output.

Use linked list instead.

tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, sqlite3):
Time (from start to end of l2 node): 239 seconds **WAS 518**
Worst latency: 56.9 seconds **WAS 353**

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

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Low 27/100

This change is a performance fix, not a direct security patch. It swaps a slow array for a linked list when handling large numbers of output streams for RPC responses and plugin messages. The old array approach caused severe slowdowns—up to hundreds of seconds of delay in extreme cases—which could be abused to make the node sluggish or unresponsive. The fix removes that bottleneck, making large-output operations finish much faster and reducing the chance of a denial-of-service via resource exhaustion.

Lower-prioritysql: limit how many chainmoves/channelmoves entries we ask for at once.by Rusty Russell · a877e285 · Nov 20, 2025 · 1 fileMessage 83 · StrongInformational 23Details
Commit message · Rusty Russell

sql: limit how many chainmoves/channelmoves entries we ask for at once.

This avoids latency spikes when we ask lightningd to give us 2M entries.

tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, sqlite3):
Time (from start to end of l2 node): 88 seconds (was 95)
Worst latency: 0.028 seconds **WAS 4.5**

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

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 23/100

This change is a performance fix, not a security fix. It caps how many records the SQL plugin fetches from lightningd in one go (to 10,000), then loops if more are needed. The commit message explicitly frames it as avoiding latency spikes: worst-case response time dropped from 4.5 seconds to 0.028 seconds. There is no evidence it closes a vulnerability.

Lower-prioritypytest: test for 1M JSONRPC calls which don't need transactions.by Rusty Russell · b03562b9 · Nov 20, 2025 · 2 filesMessage 83 · StrongInformational 15Details
Commit message · Rusty Russell

pytest: test for 1M JSONRPC calls which don't need transactions.

To measure the improvement (if any) if we don't actually create empty transactions.

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

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 internal test to Core Lightning that exercises one million JSON-RPC plugin calls. It is purely a performance benchmark and test infrastructure change; it does not fix any bug, change production behavior, or introduce any security-relevant code path that an external user could reach.

Lower-prioritydb: don't start transactions unless we really need to.by Rusty Russell · bfbee055 · Nov 20, 2025 · 5 filesMessage 85 · StrongInformational 12Details
Commit message · Rusty Russell

db: don't start transactions unless we really need to.

We always start a transaction before processing, but there are cases where
we don't need to. Switch to doing it on-demand.

This doesn't make a big difference for sqlite3, but it can for Postgres because
of the latency: 12% or so. Every bit helps!

30 runs, min-max(mean+/-stddev):

Postgres before: 8.842773-9.769030(9.19531+/-0.21)
Postgres after: 8.007967-8.321856(8.14172+/-0.066)

sqlite3 before: 7.486042-8.371831(8.15544+/-0.19)
sqlite3 after: 7.973411-8.576135(8.3025+/-0.12)

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

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 12/100

This change is a performance optimization, not a security fix. It delays starting a database transaction until the software actually needs to write or read data, rather than starting one automatically at the beginning of every operation. The commit message explicitly frames this as a speed improvement, especially for PostgreSQL, and provides benchmark numbers. There is no indication of a vulnerability being fixed.

Lower-prioritylightningd: allow filtering on custommsg hook too.by Rusty Russell · 213cbba5 · Nov 20, 2025 · 4 filesMessage 73 · AdequateInformational 19Details
Commit message · Rusty Russell

lightningd: allow filtering on custommsg hook too.

Changelog-Added: Plugins: "filters" can be specified on the `custommsg` hook to limit what message types the hook will be called for.
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 19/100

This commit adds a new plugin feature: the ability for plugin authors to register a 'custommsg' hook with a filter list, so the hook is only invoked for specific custom message types. It is a feature enhancement, not a security fix. There is no indication in the commit or supplied references that this resolves a known vulnerability.

Lower-priorityPython: update pyproject.toml so we can run tests/benchmarks.py.by Rusty Russell · f49818c0 · Nov 20, 2025 · 2 filesMessage 83 · StrongInformational 15Details
Commit message · Rusty Russell

Python: update pyproject.toml so we can run tests/benchmarks.py.

I had forgotten this file existed, but it needs tqdm and pytest-benchmark, so add those dev
requirements.

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

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 simply adds two Python development-only packages (tqdm and pytest-benchmark) to the project's dependency list so an existing benchmark script can run. It does not change any runtime code, network behavior, or security-sensitive logic.

Lower-prioritypyln-testing: don't assume we're doing debug logging for fundwallet and line_graph helpers.by Rusty Russell · 19f0b04a · Nov 20, 2025 · 1 fileMessage 75 · AdequateInformational 15Details
Commit message · Rusty Russell

pyln-testing: don't assume we're doing debug logging for fundwallet and line_graph helpers.

We want to use log-level info for benchmarking, for example.

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 test-framework cleanup. Two helper functions in the Python testing utilities used to wait for certain events by scanning daemon debug logs. The change makes them check the actual RPC/API state instead, so the helpers still work when debug logging is disabled (e.g., when running benchmarks at log level 'info'). There is no change to production node code, no security fix, and no vulnerability.

Lower-prioritytests/benchmark.py: tune nodes a little.by Rusty Russell · 5fd95b3d · Nov 20, 2025 · 1 fileMessage 78 · AdequateInformational 15Details
Commit message · Rusty Russell

tests/benchmark.py: tune nodes a little.

Drop the log level, don't do extra memory checks, don't dump I/O. These are not
realistic for testing non-development nodes.

Here's the comparison, using:
VALGRIND=0 eatmydata uv run pytest -v --benchmark-compare=0001_baseline tests/benchmark.py

Name (time in us) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_invoice (NOW) 414.9430 (1.0) 39,115.6150 (12.35) 834.7296 (1.0) 2,274.1198 (6.59) 611.7745 (1.0) 162.0230 (1.0) 1;33 1,197.9927 (1.0) 290 1
test_invoice (0001_baselin) 951.9740 (2.29) 3,166.4061 (1.0) 1,366.7944 (1.64) 345.1460 (1.0) 1,328.6110 (2.17) 339.3517 (2.09) 48;15 731.6389 (0.61) 221 1

test_pay (NOW) 36,339.2329 (87.58) 69,477.8530 (21.94) 51,719.9459 (61.96) 8,033.4262 (23.28) 52,639.5601 (86.04) 9,590.1425 (59.19) 6;0 19.3349 (0.02) 17 1
test_pay (0001_baselin) 61,741.5591 (148.80) 108,801.6961 (34.36) 88,284.6752 (105.76) 15,875.4417 (46.00) 96,006.0760 (156.93) 27,500.9771 (169.74) 6;0 11.3270 (0.01) 13 1

test_single_payment (NOW) 46,721.4010 (112.60) 66,027.6250 (20.85) 56,699.4597 (67.93) 5,829.7234 (16.89) 54,659.9385 (89.35) 9,810.9820 (60.55) 6;0 17.6369 (0.01) 14 1
test_single_payment (0001_baselin) 52,215.3670 (125.84) 109,608.0400 (34.62) 74,521.8032 (89.28) 16,175.6833 (46.87) 72,881.5976 (119.13) 17,668.8581 (109.05) 4;1 13.4189 (0.01) 12 1

test_forward_payment (NOW) 108,338.2401 (261.09) 115,570.7800 (36.50) 111,353.7021 (133.40) 2,483.2338 (7.19) 111,981.6790 (183.04) 3,360.6182 (20.74) 3;0 8.9804 (0.01) 11 1
test_forward_payment (0001_baselin) 108,917.7490 (262.49) 168,348.2911 (53.17) 140,321.5990 (168.10) 22,375.2216 (64.83) 143,746.4900 (234.97) 36,363.4459 (224.43) 3;0 7.1265 (0.01) 7 1

test_start (NOW) 299,278.4000 (721.25) 330,340.2610 (104.33) 314,121.8292 (376.32) 11,385.4700 (32.99) 314,603.4899 (514.25) 13,876.4871 (85.65) 2;0 3.1835 (0.00) 5 1
test_start (0001_baselin) 305,928.9111 (737.28) 575,270.0820 (181.68) 419,496.8460 (502.55) 138,248.1937 (400.55) 334,207.0500 (546.29) 254,339.0035 (>1000.0) 2;0 2.3838 (0.00) 5 1

test_long_forward_payment (NOW) 1,088,077.8680 (>1000.0) 1,131,035.0260 (357.20) 1,108,896.7970 (>1000.0) 20,494.1195 (59.38) 1,098,544.8329 (>1000.0) 36,904.4899 (227.77) 3;0 0.9018 (0.00) 5 1
test_long_forward_payment (0001_baselin) 1,282,326.5721 (>1000.0) 1,450,350.8301 (458.04) 1,369,618.5776 (>1000.0) 73,432.8716 (212.76) 1,380,547.3910 (>1000.0) 132,647.3573 (818.69) 2;0 0.7301 (0.00) 5 1

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 benchmarking test script. It makes benchmark runs faster by reducing logging, disabling memory-leak detection, and turning off I/O recording during tests. There is no change to the actual Core Lightning node software that users run, and nothing in the commit affects security.

Lower-prioritypytest: move test_coinmoves.py::test_generate_coinmoves and test_plugin.py::test_spam_commands to benchmark.pyby Rusty Russell · ce425b46 · Nov 20, 2025 · 3 filesMessage 65 · AdequateInformational 15Details
Commit message · Rusty Russell

pytest: move test_coinmoves.py::test_generate_coinmoves and test_plugin.py::test_spam_commands to benchmark.py

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 commit simply moves two existing performance tests from their original test files into a dedicated benchmark file. It does not change any production code, fix bugs, or alter security behavior. The tests themselves are unchanged in substance; only their location and some benchmark plumbing are adjusted.

Lower-prioritysql: use wait RPC so we don't have to check listchannelmoves/listchainmoves each time.by Rusty Russell · 7910ee44 · Nov 20, 2025 · 1 fileMessage 83 · StrongInformational 15Details
Commit message · Rusty Russell

sql: use wait RPC so we don't have to check listchannelmoves/listchainmoves each time.

tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, sqlite3):
Time (from start to end of l2 node): 102 seconds **WAS 126**
Worst latency: 4.5 seconds **WAS 5.1**

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

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 is a performance optimization for the SQL plugin in Core Lightning. It replaces repeated polling of `listchainmoves` and `listchannelmoves` with a new 'wait' RPC that notifies the plugin only when there are actually new entries. The commit message shows benchmark improvements (faster test completion and lower latency), and there is no indication of any security fix or vulnerability being addressed.

Lower-prioritysql: if we use `dev-sqlfilename`, don't bother syncing it to disk.by Rusty Russell · bb7db392 · Nov 20, 2025 · 1 fileMessage 65 · AdequateInformational 18Details
Commit message · Rusty Russell

sql: if we use `dev-sqlfilename`, don't bother syncing it to disk.

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 commit changes a developer-only test feature (`dev-sqlfilename`) so that when it is used, the SQLite database does not write changes to disk as carefully. This makes tests run faster but increases the risk of losing data if the program crashes. It only affects a special testing option, not normal operation.

Lower-priorityplugins/sql: use modern data style, not globals.by Rusty Russell · b63034bd · Nov 20, 2025 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Rusty Russell

plugins/sql: use modern data style, not globals.

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 is a straightforward internal cleanup in the SQL plugin of Core Lightning. It replaces global variables (shared data that any part of the program could accidentally touch) with a dedicated data structure attached to the plugin instance. There is no security fix here; it is a code-quality and maintainability change.

Lower-prioritylightningd: don't process more than 100 commands from a plugin at once.by Rusty Russell · 94d582f2 · Nov 20, 2025 · 1 fileMessage 83 · StrongLow 36Details
Commit message · Rusty Russell

lightningd: don't process more than 100 commands from a plugin at once.

Now that ccan/io rotates through callbacks, we can call io_always() to
yield.

We're now fast enough that this doesn't have any effect on this test,
bit it's still good to have.

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

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Low 36/100

This change adds a limit so that Core Lightning processes at most 100 plugin responses in one go before yielding control back to the main event loop. The stated goal is to prevent a misbehaving or malicious plugin from flooding the daemon with responses and starving other work. It is framed by the author as a hardening measure rather than a fix for a known exploitable bug.

Lower-prioritylightningd: don't process more than 100 commands from a JSONRPC at once.by Rusty Russell · b51e2827 · Nov 20, 2025 · 1 fileMessage 73 · AdequateLow 37Details
Commit message · Rusty Russell

lightningd: don't process more than 100 commands from a JSONRPC at once.

Now that ccan/io rotates through callbacks, we can call io_always() to yield.

Though it doesn't fire on our benchmark, it's a good thing to do.

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 tweaks how Core Lightning handles incoming JSON-RPC commands so it never processes more than 100 commands or 250 milliseconds in one go without taking a break to let other connections and tasks run. The goal is to prevent a single busy connection from starving the rest of the node. The commit itself frames it as a hardening improvement rather than a fix for a known active bug or vulnerability.

Lower-priorityccan: update to get io_loop fairness.by Rusty Russell · 5fc9e5a4 · Nov 20, 2025 · 2 filesMessage 80 · StrongInformational 16Details
Commit message · Rusty Russell

ccan: update to get io_loop fairness.

This rotates through fds explicitly, to avoid unfairness.
This doesn't really make a difference until we start using it.

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

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 16/100

This commit updates an internal helper library (CCAN) used by Core Lightning to make the program's main event loop fairer when handling many network connections. Previously, lower-numbered file descriptors could be serviced first every time, which in extreme cases might let one connection starve others. The change rotates through connections and interleaves 'always-run' callbacks. The commit message explicitly says this is not currently security-relevant for Core Lightning ('This doesn't really make a difference until we start using it').

Lower-prioritycommon: optimize json parsing.by Rusty Russell · 54d4bf11 · Nov 20, 2025 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · Rusty Russell

common: optimize json parsing.

We would keep parsing if we were out of tokens, even if we had actually
finished one object!

These are comparison against the "xpay: use filtering on rpc_command
so we only get called on "pay"." not the disasterous previous one!

tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, sqlite3):
Time (from start to end of l2 node): 126 seconds (was 135)
Worst latency: 5.1 seconds **WAS 12.1**

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

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 15/100

This is a performance optimization for JSON parsing in Core Lightning. The change fixes a bug where the parser would keep re-parsing unnecessarily when it ran out of tokens, even though it had already successfully parsed a complete JSON object. The commit message frames this as an optimization, not a security fix, and shows benchmark improvements (worst latency dropping from 12.1 seconds to 5.1 seconds).

Lower-prioritycommando, chanbackup: use custommsg hooks.by Rusty Russell · aff1d6b9 · Nov 20, 2025 · 2 filesMessage 60 · AdequateLow 29Details
Commit message · Rusty Russell

commando, chanbackup: use custommsg hooks.

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 · Low 29/100

This commit changes two Core Lightning plugins—commando and chanbackup—so they only process specific peer message types instead of listening to every custom peer message. It is a hardening/refactoring change that narrows what each plugin handles, likely improving performance and reducing the attack surface, but the diff alone does not show a fix for an exploitable vulnerability.

Lower-prioritylibplugin: don't wait for clean_tmpctx() to free requests as we process them.by Rusty Russell · 1d4a1cdd · Nov 20, 2025 · 1 fileMessage 73 · AdequateLow 29Details
Commit message · Rusty Russell

libplugin: don't wait for clean_tmpctx() to free requests as we process them.

xpay is relying on the destructor to send another request. This means
that it doesn't actually submit the request until *next time* we wake.

This has been in xpay from the start, but it is not noticeable until
xpay stops subscribing to every command on the rpc_command hook.

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 29/100

This is a bug-fix patch for Core Lightning's plugin library. It changes when plugin-to-JSON-RPC request objects are freed so that an internal plugin called xpay can immediately send follow-up commands instead of waiting until the next event loop wakeup. The commit describes it as a functional bug that was hidden until xpay stopped monitoring every command, not as a security vulnerability.

Lower-prioritylibplugin: allow plugins to register optional filters for each hook they want.by Rusty Russell · ebe5f2e6 · Nov 20, 2025 · 2 filesMessage 65 · AdequateInformational 12Details
Commit message · Rusty Russell

libplugin: allow plugins to register optional filters for each hook they want.

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 12/100

This commit adds a new plugin-library feature that lets plugin authors register optional filters when subscribing to hooks. It is a straightforward API extension: plugins can now declare string or integer filters in their hook manifest, which the main daemon can use to decide whether to invoke the hook. There is no indication in the commit that this fixes a bug or addresses a security issue; it appears to be a normal feature addition.

Lower-prioritylightningd: add support for filters on "rpc_command" hook.by Rusty Russell · d9d82ac5 · Nov 20, 2025 · 2 filesMessage 73 · AdequateInformational 15Details
Commit message · Rusty Russell

lightningd: add support for filters on "rpc_command" hook.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Plugins: the `rpc_command` hook can now specify a "filter" on what commands it is interested in.

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

This commit adds a new optional feature to Core Lightning plugins. Plugin authors can now tell the 'rpc_command' hook to only intercept specific RPC commands by name, rather than being sent every single command. This is a convenience/performance improvement, not a security fix or vulnerability.

Lower-priorityRevert "bookkeeper: don't flood logs if we have many channelmoves all at once."by Rusty Russell · 673729bd · Nov 20, 2025 · 1 fileMessage 83 · StrongInformational 18Details
Commit message · Rusty Russell

Revert "bookkeeper: don't flood logs if we have many channelmoves all at once."

This reverts commit 1dda0c07530d01dfa50f6121ba30530659a1475b so we can test
what its like to be flooded with logs again.

This benefits from other improvements we've made this release, to handling
plugin input (i.e. converting to use common/jsonrpc_io), so this doesn't
make much difference.

tests/test_coinmoves.py::test_generate_coinmoves (100,000, sqlite3):
Time (from start to end of l2 node): 211 seconds
Worst latency: 108 seconds

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

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 18/100

This commit removes a small log-throttling feature in Core Lightning's bookkeeper plugin. Previously, if many channel balance updates arrived at once, the plugin only logged the first and last one to avoid spamming debug logs. This change reverts that behavior so every update is logged again. The author says this is acceptable because other performance improvements this release make the flood less of a problem. There is no direct security vulnerability here; the main effect is more debug log output, which could slightly increase disk use or log-noise under heavy load.

Lower-priorityJSONRPC: use a bigger default buffer.by Rusty Russell · 9e04d044 · Nov 20, 2025 · 1 fileMessage 90 · StrongInformational 18Details
Commit message · Rusty Russell

JSONRPC: use a bigger default buffer.

This potentially saves us some reads (not measurably though), at cost
of less fairness. It's important to measure though, because a single
large request will increase buffer size for successive requests, so we
can see this pattern in real usage.

tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, sqlite3):
Time (from start to end of l2 node): 227 seconds (was 239)
Worst latency: 62.4 seconds (was 56.9)

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 · Informational 18/100

This commit simply increases the default memory buffer size used when reading JSON-RPC messages. The change is described by the author as a performance tweak to reduce the number of small reads, not a security fix. There is no indication in the commit or supplied references that this resolves a vulnerability.

Lower-prioritycommon: increase jsonrpc_io buffer size temporarily to aggrevate perf issues.by Rusty Russell · d2a60911 · Nov 20, 2025 · 1 fileMessage 83 · StrongInformational 21Details
Commit message · Rusty Russell

common: increase jsonrpc_io buffer size temporarily to aggrevate perf issues.

A client can do this by sending a large request, so this allows us to see what
happens if they do that, even though 1MB (2MB buffer) is more than we need.

This drives our performance through the floor: see next patch which gets
us back on track.

tests/test_coinmoves.py::test_generate_coinmoves (2,000,000, sqlite3):
Time (from start to end of l2 node): 271 seconds **WAS 135**
Worst latency: 105 seconds **WAS 12.1**

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

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 21/100

This commit is a temporary debugging change that increases an internal buffer size from 2 KB to 1 MB. The author explicitly states it is meant to expose and measure performance problems caused by large JSON-RPC requests, not to fix a security bug. By itself, it makes the node slower when handling big requests, but it does not introduce a clear vulnerability such as a crash or memory corruption.