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 32 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-prioritycurrencyrate: change `currencyrates` to `listcurrencyrates` which is more CLN-ish.by Rusty Russell · 8f5e2424 · Mar 23, 2026 · 6 filesMessage 73 · AdequateInformational 18Details
Commit message · Rusty Russell

currencyrate: change `currencyrates` to `listcurrencyrates` which is more CLN-ish.

And add a schema file.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: `listcurrencyrates` API for examining the current values from the `currencyconvert` plugin's sources.

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

This commit renames a read-only exchange-rate API from 'currencyrates' to 'listcurrencyrates' and changes the response format from a flat map of millisatoshi-per-currency-unit values to a structured list of source names and BTC prices. It also adds the missing JSON schema and documentation. There is no security fix or vulnerability here; it is a normal API cleanup and documentation improvement.

Lower-prioritycurrencyrate: implement currencyrate command.by Rusty Russell · b05a249a · Mar 23, 2026 · 6 filesMessage 58 · ThinInformational 15Details
Commit message · Rusty Russell

currencyrate: implement currencyrate command.

For the simple case of offers conversion, converting a given amount of
fiat to BTC is the desired API. But for almost everything else, we
want to get the (median) per-BTC rate.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: `currencyrate` API for getting the current median BTC conversion top a given fiat currency.

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

This commit adds a new public command called currencyrate to Core Lightning. It lets users ask the node for the current median exchange rate of one bitcoin into a chosen fiat currency. The change is purely a feature addition: it exposes data that the existing currencyrate plugin already collects, without altering security-sensitive logic such as wallet handling, network parsing, or cryptographic checks.

Lower-prioritybookkeeper: keep up with new entries if we're doing currency conversion.by Rusty Russell · df02b246 · Mar 23, 2026 · 2 filesMessage 73 · AdequateInformational 16Details
Commit message · Rusty Russell

bookkeeper: keep up with new entries if we're doing currency conversion.

If we're doing currency conversion, we can't refresh lazily on each
command: we need to watch for new events and refresh then. This is
fairly easy to do, however.

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

This commit fixes a bookkeeping timing issue in Core Lightning. When the bookkeeper plugin is configured to show amounts in a fiat currency, it previously only refreshed currency conversion rates when a user ran a command. Now it actively listens for new on-chain and channel events and refreshes rates immediately, so reports stay up to date without waiting for a manual command. The change is a correctness/quality improvement, not a security vulnerability fix.

Lower-prioritybookkeeper: avoid wasteful refresh races.by Rusty Russell · feed7b77 · Mar 23, 2026 · 2 filesMessage 68 · AdequateInformational 21Details
Commit message · Rusty Russell

bookkeeper: avoid wasteful refresh races.

Now we're refreshing more regularly, so it's worth avoiding races
rather than simply letting them happen and ignoring the results.

Keep a pointer in bkpr and piggy back on that one if it's there.

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

This change is a hardening fix in Core Lightning's bookkeeping plugin. It prevents multiple simultaneous 'refresh' operations from racing each other and silently dropping duplicate results. Instead of ignoring cases where data arrives out of order, the code now asserts the expected order and queues follow-up refresh requests onto one shared in-flight operation. The visible risk is reduced reliability/correctness of accounting records rather than direct theft of funds.

Lower-prioritybookkeeper: make bookkeeper-currency dynamic.by Rusty Russell · 8025ed68 · Mar 23, 2026 · 4 filesMessage 68 · AdequateInformational 17Details
Commit message · Rusty Russell

bookkeeper: make bookkeeper-currency dynamic.

This means doing more work if we set it; in particular, we need to
clean up any old values. We define the empty string as "unset", since
setconfig has no other way to "unset" variables.

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

This change lets users turn the bookkeeper's currency conversion feature on or off while the program is running, instead of only at startup. It also cleans up old exchange-rate data when the currency setting changes, and adds a safety check so a late answer from a previous currency request doesn't get stored. There is no obvious security bug here; it is a normal feature improvement.

AI review queuedcommon: add mkdatastorekey helper to make string arrays.by Rusty Russell · 852e54e1 · Mar 23, 2026 · 4 filesMessage 65 · AdequateInformational 15Details
Commit message · Rusty Russell

common: add mkdatastorekey helper to make string arrays.

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
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit is a routine code cleanup: it introduces a small helper function that builds lists of text strings more conveniently, and updates three existing functions to use it. There is no security-relevant change visible in the diff.

Lower-prioritycommon: add simple unit test for mkdatastorekey.by Rusty Russell · 4d14529c · Mar 23, 2026 · 2 filesMessage 70 · AdequateInformational 15Details
Commit message · Rusty Russell

common: add simple unit test for mkdatastorekey.

Thanks ChatGPT!

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 a new unit test for an existing helper function called mkdatastorekey, which builds key arrays for the datastore. It also adds a small generated placeholder stub in another test file so that test continues to compile. There is no change to production code, no bug fix, and no security-related behavior.

Lower-prioritycurrencyrate: expose get_median_rate and do conversion in front-end for currencyconvert.by Rusty Russell · c832ebd0 · Mar 23, 2026 · 2 filesMessage 65 · AdequateInformational 15Details
Commit message · Rusty Russell

currencyrate: expose get_median_rate and do conversion in front-end for currencyconvert.

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 small internal code refactor in Core Lightning's currency-rate plugin. It moves the constant 'MSAT_PER_BTC' and the final arithmetic from the back-end oracle into the front-end handler, exposing a new 'get_median_rate' helper. The actual conversion formula is unchanged. There is no security issue visible in the diff.

Lower-prioritybookkeeper: save currencyrate ranges, not individual values.by Rusty Russell · dbe921c3 · Mar 23, 2026 · 3 filesMessage 73 · AdequateInformational 16Details
Commit message · Rusty Russell

bookkeeper: save currencyrate ranges, not individual values.

The currencyrate plugin aims for 10 minute polls, so it just doesn't
move that fast. If we're busy, recording the rate every second is
overkill.

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

This change is a performance and storage optimization for Core Lightning's bookkeeping plugin. Instead of saving every single currency exchange rate sample to the datastore, it now saves ranges of time where the rate stayed the same. This reduces disk writes and storage size but does not fix a security vulnerability. There is a small risk that the new lookup logic could return a slightly stale rate if a stored range is extended too far, but the code includes a 60-second tolerance and explicit checks to prevent hiding failed updates.

Lower-prioritybookkeeper: use iso4217 check, scale and print correct minor units.by Rusty Russell · 5fde3493 · Mar 23, 2026 · 3 filesMessage 65 · AdequateInformational 18Details
Commit message · Rusty Russell

bookkeeper: use iso4217 check, scale and print correct minor units.

e.g. USD = 2, CLF = 4, XAU = 0.

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 fixes how the Core Lightning bookkeeper plugin handles fiat currency codes and their decimal places. Previously it assumed every currency used 4 decimal places when storing and displaying exchange rates. Now it uses a proper ISO 4217 table so currencies like USD use 2 decimals, Chilean Unidad de Fomento (CLF) uses 4, and gold (XAU) uses 0. It also validates that the configured currency is a known ISO 4217 code. The main risk is that old stored rates could be misinterpreted after the change, and users might see wrong converted values if they relied on the previous fixed scaling.

Lower-prioritycurrencyrate: make oracle store and serve the BTC price, not msat per fiat unit.by Rusty Russell · 952ffc2b · Mar 23, 2026 · 3 filesMessage 83 · StrongInformational 18Details
Commit message · Rusty Russell

currencyrate: make oracle store and serve the BTC price, not msat per fiat unit.

This is the first step in updating the API.

Subtly, the median of BTC prices is different from the median of msat-per-dollar,
given it's the invoice. This changes our test:

```
FAILED tests/test_currencyrate.py::test_cached_median - assert 133333 == 150000
```

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 changes how a Core Lightning plugin stores and calculates Bitcoin exchange rates. Previously the plugin stored 'millisatoshis per fiat unit' and took the median of those inverted values. Now it stores the raw fiat price of one bitcoin and converts only at output time. The commit message explicitly notes this is a subtle change because the median of bitcoin prices is mathematically different from the median of inverted rates. The patch is described as the first step in updating the API, not as a security fix.

Lower-prioritycurrencyrate: fix cached currencies to still use median.by Rusty Russell · 31e7ee5f · Mar 23, 2026 · 2 filesMessage 65 · AdequateLow 38Details
Commit message · Rusty Russell

currencyrate: fix cached currencies to still use median.

It was using *only* the latest one, not all the fresh ones.

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

This commit fixes a bug in Core Lightning's currency-rate plugin. Previously, when exchange-rate data was cached, the plugin used only the most recent single source instead of combining all still-fresh sources and taking the median. Using a single source makes the converted bitcoin amount easier to manipulate if one price feed is wrong or malicious. The fix restores the intended median behavior across all fresh cached prices.

Lower-prioritycli: remove \ in simple format.by Rusty Russell · 5b518917 · Mar 23, 2026 · 1 fileMessage 68 · AdequateLow 26Details
Commit message · Rusty Russell

cli: remove \ in simple format.

This does mostly the right thing, but this removes e.g. \" -> ", and \\ to \.

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

This commit changes how the command-line tool 'lightning-cli' prints JSON strings in its simple human-readable output mode. Previously, backslashes used for escaping (like \" to show a quote, or \\ to show a backslash) were left in place, so users saw extra backslashes on screen. The patch now strips the backslash for any escape it does not explicitly handle (only \n newline and \t tab are still converted). This is a display/output formatting fix, not a change to how data is parsed or stored.

Lower-priorityplugins: simplify datastore interfaces now callers have mkdatastorekey.by Rusty Russell · 715295f9 · Mar 23, 2026 · 12 filesMessage 65 · AdequateInformational 18Details
Commit message · Rusty Russell

plugins: simplify datastore interfaces now callers have mkdatastorekey.

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 is a routine internal code cleanup. It replaces hand-built slash-separated datastore key strings with a new helper function, mkdatastorekey, that builds the same keys as a list of separate parts. There is no indication this fixes a security bug; it is a refactoring to make the code simpler and less error-prone.

AI review queuedlibplugin: hand command, not plugin, to parsing functions.by Rusty Russell · 52299697 · Mar 23, 2026 · 9 filesMessage 73 · AdequateInformational 11Details
Commit message · Rusty Russell

libplugin: hand command, not plugin, to parsing functions.

In particular, for dynamic options we want to create an aux_command in
the case of bookkeeper-currency.

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
Why it was queued
parser or protocol pathsecond-pass: security-sensitive path
AI analysis · Informational 11/100

This is a straightforward internal code cleanup in Core Lightning's plugin library. It changes many plugin option-parsing functions so they receive a 'command' object instead of a 'plugin' object. The commit message says this is preparation for future 'dynamic options' work (specifically for a bookkeeper currency feature). There is no bug fix, security patch, or vulnerability visible in the diff itself.

Lower-prioritycurrencyrate: don't sleep for as long in background task.by Rusty Russell · e2770c81 · Mar 23, 2026 · 1 fileMessage 85 · StrongInformational 15Details
Commit message · Rusty Russell

currencyrate: don't sleep for as long in background task.

We process at least one stale entry per iteration (more if it has
changed by +/- 1%), so we should sleep for less if we have more
entries, in order to average hitting each source once per hour.

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

This commit adjusts how often a background currency-rate updater checks exchange-rate sources. Previously, the updater slept a fixed amount between runs; now it sleeps less when there are more sources, so each source gets queried about once per hour on average. This is a performance and freshness tuning change, not a security fix.

Lower-prioritycommon: fix run-mkdatastorekey link on arm64by Sangbida Chaudhuri · 43c233ee · Mar 23, 2026 · 1 fileMessage 78 · AdequateInformational 15Details
Commit message · Sangbida Chaudhuri

common: fix run-mkdatastorekey link on arm64

Add common/pseudorand.o to its link line to fix below error seen on CI:

Undefined symbols for architecture arm64:
"_siphash_seed", referenced from:
_script_with_len_hash in script.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [common/test/run-mkdatastorekey] Error 1

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 is a routine build fix for a test program on ARM64 computers. A missing piece (a file called pseudorand.o) was added to the linker command so the test binary compiles successfully. It does not change how the software behaves or fix any security flaw.

Lower-prioritytests: avoid flaky test_bkpr_currency_dynamic on same-second channel_mvtby Sangbida Chaudhuri · fd56e621 · Mar 23, 2026 · 1 fileMessage 83 · StrongInformational 15Details
Commit message · Sangbida Chaudhuri

tests: avoid flaky test_bkpr_currency_dynamic on same-second channel_mvt

Bookkeeper FX coverage uses Unix-second intervals; when inv1 and inv2 land in the same second, listing can attach currencyrate to pre-setconfig events.

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 test-only change that adds a one-second delay in an automated test to prevent flaky results. It does not change any production code, network behavior, or security logic.

Lower-prioritybookkeeper: expose currencyrate_str and bkpr_of so report.c can access them.by Rusty Russell · c300e0ab · Mar 23, 2026 · 2 filesMessage 65 · AdequateInformational 15Details
Commit message · Rusty Russell

bookkeeper: expose currencyrate_str and bkpr_of so report.c can access them.

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 code cleanup in the bookkeeper plugin. Two internal helper functions are made visible to other source files so they can be reused in an upcoming report feature. There is no security-relevant change.

Lower-prioritypytest: clean up test_currencyrate.py using wait_for_logs()by Rusty Russell · 6bfb19d4 · Mar 23, 2026 · 1 fileMessage 73 · AdequateInformational 15Details
Commit message · Rusty Russell

pytest: clean up test_currencyrate.py using wait_for_logs()

It's explicitly designed for "these will occur, don't know what order".

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 minor cleanup of a single test file. It replaces a manual sequence of log-search calls with a single helper that waits for multiple expected log messages regardless of order. There is no change to production code, no user-facing behavior change, and no security relevance.

Lower-prioritypytest: test for currencyrate median code when values are cached.by Rusty Russell · 17824fab · Mar 23, 2026 · 1 fileMessage 75 · AdequateInformational 12Details
Commit message · Rusty Russell

pytest: test for currencyrate median code when values are cached.

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

This commit only adds a new automated test file for the currency rate feature. It does not change any production code, so it cannot introduce a security vulnerability by itself. The test is currently marked as expected to fail (xfail), meaning it documents a known behavior or bug in the median calculation when currency rates are cached.

Lower-prioritybkpr: add `bkpr-currency` option to record currency rates on each event.by Rusty Russell · d67888a4 · Mar 23, 2026 · 3 filesMessage 73 · AdequateInformational 18Details
Commit message · Rusty Russell

bkpr: add `bkpr-currency` option to record currency rates on each event.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Config: `bkpr-currency` option to record conversion rate at each event.

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

This commit adds an optional bookkeeping feature to Core Lightning that lets users specify a currency (like USD). The bookkeeper plugin then asks another plugin for the exchange rate at the time of each financial event and records it. It is a feature addition, not a fix for a known security bug. The main security-relevant observation is that the new code makes JSON-RPC calls to a 'currencyrate' plugin and stores the returned rate, but it does not validate the currency name or the returned rate beyond checking that the rate is a valid JSON double. A malicious or compromised 'currencyrate' plugin could return extreme or malformed values, but this only affects optional accounting records, not funds or consensus.

Lower-prioritybookeeper: add currencyrate to bkpr-listaccounts if we recorded it.by Rusty Russell · 0ced9a89 · Mar 23, 2026 · 16 filesMessage 65 · AdequateInformational 18Details
Commit message · Rusty Russell

bookeeper: add currencyrate to bkpr-listaccounts if we recorded it.

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 is a routine feature addition to Core Lightning's bookkeeping plugin. It exposes an already-recorded currency conversion rate (currencyrate) in the bkpr-listaccountevents RPC output when a currency setting is configured. There is no indication of a security bug, vulnerability, or fix.

Lower-prioritymsggen: add currencyconvert, currencyrate and listcurrencyrates.by Rusty Russell · 9824cb6e · Mar 23, 2026 · 9 filesMessage 73 · AdequateInformational 15Details
Commit message · Rusty Russell

msggen: add currencyconvert, currencyrate and listcurrencyrates.

I used daywalker's hack to patch.py to make this work:

```
if f.added is None and 'added' not in m:
m['added'] = 'v26.04'
```

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 routine code-generation update that exposes three new currency-conversion RPCs (listcurrencyrates, currencyconvert, currencyrate) through the gRPC and Python/JSON-RPC bindings. It only adds generated request/response types, proto definitions, and server stubs. There is no change to core logic, authentication, authorization, cryptography, or network handling.

Lower-prioritybookkeeper: implement flexible "bkpr-report" command.by Rusty Russell · 82a8be14 · Mar 23, 2026 · 14 filesMessage 73 · AdequateInformational 18Details
Commit message · Rusty Russell

bookkeeper: implement flexible "bkpr-report" command.

You can specify the format for each line in a flexible way, using
format tags (inclding defaults if they are not set, recursively).

Changelog-Added: JSON-RPC: `bkpr-report` allows flexible summaries of bookkeeper income.
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 18/100

This commit adds a new bookkeeping command, bkpr-report, that lets users format their node's income events into custom text or CSV output. It is a feature addition, not a security fix. There is no indication in the commit or supplied references that it addresses a vulnerability or security issue.