Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.
Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.
This is a small bug-fix patch for Electrum's QML (mobile-style) graphical interface. The crash reporter was not correctly handling exceptions that come from Python's threading system, which could cause the crash reporter itself to misbehav…
Fixes incorrect exception argument handling in crash reporterPrevents potential secondary failure in error-reporting pathNo security boundary crossed; no input from untrusted source is processed
This commit fixes a bug in Electrum's mobile-style QML crash reporter. When an uncaught exception occurred inside a background thread, the crash reporter itself would break because it expected three pieces of information but received one b…
Crash reporter failure could hide or obscure real runtime errors in background threadsNo input validation, privilege boundary, or cryptographic issue presentFix improves diagnostic fidelity but does not close an attack vector
This commit changes how Electrum creates unsigned Bitcoin transactions when an existing 'base transaction' is provided. Previously, the wallet wrongly demanded spendable coins even when the caller supplied a base transaction that already c…
Relaxation of input-source preconditionAddition of consensus-level invariant assertion (at least one input)Addition of empty-input guard before PartialTransaction construction
This commit fixes a crash in Electrum's transaction builder. If a user had only one on-chain coin (UTXO) that was just enough to meet a reserve requirement, clicking 'Max' in the send tab would hit an internal assertion and fail instead of…
Denial-of-service-like crash path triggered by user action in normal wallet stateAssertion failure reachable through GUI send flowFix converts assertion crash into handled NotEnoughFunds exception
This is a routine maintenance commit that updates many of Electrum's software building blocks (dependencies) and raises the minimum required Python version from 3.10 to 3.11. It also refreshes the Linux distribution snapshots used to build…
Dependency version bumps for security-sensitive libraries (cryptography, cffi, libffi, sqlite)Removal of an embedded PGP public key and switch to hash verification for Windows Python installer downloadsBase image refresh from EOL/near-EOL Debian bullseye to bookworm for AppImage builds
This commit is a straightforward internal cleanup: it moves repeated checks like 'are we running on Windows?', 'are we on Android?', and 'are we inside an AppImage?' into a single new helper module called platform.py. The actual behavior o…
This commit is a straightforward internal cleanup: it moves repeated operating-system checks (Windows, macOS, Linux, Android, AppImage) into a single new helper module called platform.py and updates the rest of the code to use those helper…
This commit only changes the software version number from 4.8.3 to 4.8.4 in a single file. It contains no security-related changes, no bug fixes, and no functional code modifications.
This commit relaxes a wallet check when creating a new Bitcoin transaction. Previously, Electrum refused to create a transaction if the user had no spendable coins and no explicit inputs. The change allows creation to continue if a 'base t…
Relaxation of input/coin availability guardAddition of post-construction input count assertionPotential workflow: Replace-By-Fee (RBF) or transaction bumping using base_tx inputs
This commit is a code cleanup in Electrum's mobile-style QML wallet wizard. It replaces an older thread-based background scan for BIP39 seed accounts with a newer asyncio-based task approach, and makes the recovery dialog destroy itself wh…
Refactor of async task lifecycle and cancellation handlingDialog lifecycle cleanup with onClosed: destroy()Use of ignore_if_destroyed to avoid callbacks on destroyed QML objects
This commit is a code cleanup in Electrum's mobile-style QML wallet wizard. It replaces an extra background thread with a simpler asyncio-based callback for scanning BIP39 seed accounts. There is no indication this fixes a security bug; it…
This commit fixes a bug in Electrum's Qt 'Send' tab where selecting a contact from the autocomplete dropdown could briefly leave the wrong recipient active. Previously, the payment field was set to a display name like 'Alice <alice@example…
UI state desynchronization between displayed recipient and active PaymentIdentifierStale PaymentIdentifier usable for ~1 second after recipient text changesPay/Save/Max buttons enabled while recipient is being edited
This commit fixes a UI bug in Electrum's QML (mobile-style) interface where transaction and address labels could become stale or fail to update after editing. It replaces a fragile manual callback system with a proper event listener so the…
No security-relevant signals in diff: no privilege escalation, injection, cryptographic, or authentication changes.Fixes a UI consistency bug (stale labels) that could mislead users but does not enable direct exploitation.Adds event-listener lifecycle management (register/unregister on destroy) to prevent dangling callbacks and potential use-after-free patterns.
This commit fixes a bug in Electrum's mobile-style QML password dialog. If a user tapped the OK/confirm button while the dialog was already closing, the app could emit an extra 'password entered' signal. That extra signal triggered a crash…
Crash in authentication-related code path (AuthMixin)Duplicate signal emission during UI state transitionUser-interaction race condition (tap while dialog closing)
This commit is a performance fix for a wallet function that traces where a transaction's funds came from. It replaces a slow, repeatedly-recursive approach with a more efficient loop and removes an old cache. The change also fixes how the …
Performance fix for wallet history traversalAddress-reuse uncle detection logic changedCache removed in favor of iterative computation
This commit fixes a bug where Electrum wallets created with unusual, hand-crafted 'old-style' seed phrases could not be opened or used. These seeds decode to an odd number of hex characters, which the program previously rejected. The chang…
Input validation relaxed for legacy data (odd-length hex strings)New user-facing error path prevents seed display when mnemonic encoding is impossibleGUI exception handling narrowed: UserFacingException shown as str, other Exception as repr
This commit is a small follow-up cleanup. It translates several user-facing error messages into different languages and makes the Qt GUI handle one specific file-read/write error (StorageReadWriteError) more gracefully, showing a warning d…
Exception-handling path changed in GUIUser-facing error messages internationalizedNo changes to encryption, wallet parsing semantics, or permissions
This commit improves Electrum's error handling when a user tries to open a file that is not a valid Electrum wallet. Previously, if the file contained bytes that were not valid UTF-8 text, the program would crash with a confusing technical…
Error-handling hardeningUser-facing exception message improvedNo cryptographic or parsing logic changed
This is a small user-interface fix in Electrum's Qt desktop app. Previously, if the wallet file was on a read-only folder or an unplugged drive, the app treated the resulting StorageReadWriteError as an unexpected crash and sent a crash re…
No memory safety, cryptographic, or authorization changesException handling change only; no new attack surface introducedCrash-reporting no longer triggered for expected I/O failure scenarios
This commit is a small follow-up cleanup in Electrum's keystore code. It renames an internal helper function, makes the code accept certain unusual 'old' seed phrases that some users created by hand, improves an error message shown to user…
Refactoring of seed validation helperUser-facing error handling improvement in seed displayGrandfathering of non-standard old seed phrases
onion_messages: filter correct feature when creating paths
Filter channels/peers in `get_blinded_paths_to_me` depending on the context (onion message or blinded payment path). Raise according exceptions when no channel/peer is available.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 46/100
This commit fixes a bug in Electrum's Lightning code where the program sometimes picked the wrong type of peer when building private 'blinded paths' for messages or payments. Before the fix, a path meant for an onion message could accidentally require a payment-related feature, and a path meant for a payment could accidentally require a message-related feature. The patch makes the feature check match the actual purpose, and raises clear errors when no suitable peer exists instead of silently returning an empty path. It is a correctness fix that reduces the chance of failed or misrouted private routes, but the commit itself does not describe it as a security fix and no exploit is demonstrated.
Ignore channel amount constraints when doing pathfinding for an onion message. Onion messages don't need to move funds so pathfinding shouldn't penalize channels based on fake payment amounts.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 29/100
This commit fixes a design bug in Electrum's Lightning onion-message routing. Previously, the app used a fake payment amount (10,000 millisatoshis) when finding a route for an onion message, which could cause it to reject valid message paths because real channels have minimum/maximum amount limits. The change lets onion-message pathfinding ignore those amount limits, since no actual money is being moved. It is a correctness/availability fix for a messaging feature, not a fix for theft of funds or remote code execution.
Lower-priorityonion_message: use trampoline nodes for onion messagesby f321x · 56565198 · Jun 5, 2026 · 1 fileMessage 50 · ThinLow 25Details
Commit message · f321x
onion_message: use trampoline nodes for onion messages
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Low 25/100
This commit changes how Electrum routes private 'onion messages' through the Lightning Network. For users on 'trampoline' payment setups, it now sends messages via a randomly chosen trampoline peer and trusts that peer to forward the message to the final recipient. The change removes some safety checks that previously required an active channel or a known network path, and it uses Python's standard random module to pick the trampoline peer. This could make message delivery less reliable or more predictable, and it shifts trust onto trampoline nodes, but it does not appear to be a direct theft or remote-code-execution vulnerability.
Handle missing remote channel_update when creating payinfo for blinded path by skipping the affected channel.
60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Low 35/100
This change makes Electrum's Lightning onion-message code more resilient: when the wallet wants to publish a blinded payment path through one of its channels but lacks the remote peer's latest channel policy, it now skips that channel instead of crashing. The most likely user-visible effect before the fix was an unhandled exception that could prevent creating or advertising blinded paths, possibly breaking offers/receive functionality. There is no direct evidence in the commit that this was exploitable by an attacker to steal funds.
onion_message: add invoice buffer to payinfo cltv delta
Add the 3 block invoice cltv delta buffer to the blinded payinfo's cltv_expiry_delta to prevent issues where the sender sets the expiry to exactly local_height + cltv_expiry_delta and blocks get mined during forwarding.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Low 44/100
This commit fixes a small timing buffer in Electrum's Lightning blinded-path payments. When Electrum advertised a hidden payment route, it told senders exactly how many extra blocks to reserve for safety. The problem is that new blocks can be mined while a payment is still traveling through the network. If the advertised safety margin was too tight, a payment could arrive with an expiry that is technically too close to the current block height, causing the payment to be rejected or stuck. The fix adds a 3-block buffer to the advertised safety margin so that normal mining delays don't cause failures.
AI review queuedModify the 'stored_at' syntax, so that it includes the full pathby ThomasV · 5494e827 · Jun 5, 2026 · 5 filesMessage 85 · StrongLow 27Details
Commit message · ThomasV
Modify the 'stored_at' syntax, so that it includes the full path
This may prevent collisions. More importantly, it also makes it possible to cache the subdict of 'registered_names' that is relevant to a given StoredDict, so that we do not need to walk the path on every conversion. (performance optimization, not part of this commit)
This is a backport from the levelDB branch
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 27/100
This commit changes how Electrum tracks where certain data objects live in the wallet database. It switches from short names like 'invoices/*' to full paths like '/invoices/*', and updates the internal registry to handle these full paths. The stated goal is to prevent naming collisions and to enable future performance improvements. There is no direct evidence in the commit that this fixes an active security vulnerability, but path-collision bugs in serialization code can sometimes lead to wrong data being read or written, which could have security implications.
Lower-priorityonion_message: factor out payinfo creation from get_blinded_paths_to_meby f321x · b0393baf · Jun 5, 2026 · 1 fileMessage 65 · AdequateInformational 13Details
Commit message · f321x
onion_message: factor out payinfo creation from get_blinded_paths_to_me
Separates the payinfo creation from get_blinded_paths_to_me into a separate function.
65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 13/100
This commit is a simple code cleanup: it moves a block of code that builds payment information for blinded payment paths into its own helper function. There is no change in behavior visible to users or attackers. It is a refactoring, not a security fix.
Lower-priorityplugin: nwc: regularly re-broadcast info eventby f321x · 60e38814 · Jun 5, 2026 · 1 fileMessage 68 · AdequateInformational 21Details
Commit message · f321x
plugin: nwc: regularly re-broadcast info event
I noticed with my long running NWC deamon that after a couple days some clients relying on the info event being available stopped working. Alby e.g. shows "Error: no info event (kind 13194) returned from relay". After restarting the daemon it works again for some days. It seems that relays drop the info events after some days, even though they are not ephemeral and don't have an expiry tag. So rebroadcasting them once a day should make the server more reliable.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 21/100
This change makes an Electrum NWC (Nostr Wallet Connect) server re-announce its capabilities to Nostr relays once per day. Previously it only announced once at startup, and some relays were dropping these announcements after a few days, causing wallets like Alby to stop working until the server was restarted. There is no security vulnerability here; it is a reliability fix for a wallet-connect plugin.
Lower-priorityplugin: nwc: give NWCServer its own taskgroupby f321x · 9b425692 · Jun 5, 2026 · 1 fileMessage 68 · AdequateLow 35Details
Commit message · f321x
plugin: nwc: give NWCServer its own taskgroup
It seemed weird to pass the taskgroup of the plugin into the NWCServer, this looks a bit cleaner. It also allows to get multiple tasks of the NWCServer cancelled by cancelling the NWCServers taskgroup.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 35/100
This commit rewrites how background tasks are managed inside Electrum's Nostr Wallet Connect (NWC) plugin. Previously, the plugin and the NWC server shared one task group, which could accidentally cancel an in-flight Lightning payment when the server restarted its event handler. The change gives the NWC server its own temporary task group and shields active payment tasks from cancellation. It is best read as a reliability/robustness improvement that likely closes a small window where a payment could be interrupted, not as a fix for a clear-cut remote exploit.
AI review queuedsimplify prevby SomberNight · 6a89dd30 · Jun 3, 2026 · 1 fileMessage 18 · OpaqueInformational 11Details
Commit message · SomberNight
simplify prev
18/100 · OpaqueMessage clarity
✓ Subject identifies a change! Too few words to establish purpose! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: opaque commit messagesecond-pass: security-sensitive path
AI analysis · Informational 11/100
This is a small code cleanup in Electrum's transaction handling. It simplifies how raw transaction bytes are converted to hex strings. There is no obvious security bug being fixed here; it appears to be a follow-up simplification to a previous change.
AI review queuedtx_from_any: make sanitization optionalby ThomasV · 271f079d · Jun 3, 2026 · 3 filesMessage 58 · ThinInformational 17Details
Commit message · ThomasV
tx_from_any: make sanitization optional
re.sub is expensive (calls re.sub), it is not necessary to call it when instantiating transactions from the wallet file.
defensive validationsigning or wallet pathsecond-pass: near security thresholdsecond-pass: security-sensitive path
AI analysis · Informational 17/100
This change is a performance optimization, not a security fix. It makes whitespace removal from transaction data optional, skipping it when loading transactions from the wallet's own stored files. The default behavior for user-provided input still removes whitespace. There is no direct security issue in the patch itself, though any future code that calls tx_from_any with untrusted input must remember to leave sanitization enabled.
Lower-prioritymake sure load_ast_data returns a dict with str keysby ThomasV · 3638934e · Jun 3, 2026 · 1 fileMessage 50 · ThinLow 31Details
Commit message · ThomasV
make sure load_ast_data returns a dict with str keys
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Low 31/100
This commit fixes a data-type consistency bug in Electrum's wallet database loader. When loading very old wallet files, the code could return numeric (integer) dictionary keys instead of string keys. Because the rest of the program expects string keys, this mismatch could later cause crashes or unexpected behavior when the wallet tries to read or update stored data. The fix forces all keys to become strings by converting the data through JSON.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
defensive validation
AI analysis · Informational 23/100
This commit adds a command-line option to turn off a Linux memory-protection feature in Electrum. The option is mainly intended for developers using memory profilers, but it is also automatically enabled on Android builds. It does not by itself create a vulnerability, but it gives users a way to weaken a security hardening mechanism.
Please enter the commit message for your changes. Lines starting
60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 19/100
This commit updates the built-in lists of default servers that Electrum wallet users connect to for Bitcoin test networks (testnet3 and testnet4). It adds, removes, and changes server addresses and protocol versions. There is no code change and no claim in the commit that this fixes a security issue. However, changing default servers can affect user privacy and trust, because wallets rely on these servers to learn about transactions. If a malicious server were added, it could spy on users or feed them bad information. The commit itself does not show that any added server is malicious, so this is best viewed as a routine infrastructure update with a low but non-zero security-relevant aspect.
✓ Descriptive subject! No meaningful explanatory body! Opaque security-relevant change
Why it was queued
boot or update path
AI analysis · Informational 15/100
This commit is a small cleanup of internal developer scripts. It replaces direct calls to set the Bitcoin test network with a single call that asks the configuration object which chain to use. There is no user-facing change and no security issue.
Lower-prioritynetwork: fix get_servers should not modify ports of DEFAULT_SERVERSby SomberNight · 88c7c6d5 · May 31, 2026 · 1 fileMessage 50 · ThinLow 35Details
Commit message · SomberNight
network: fix get_servers should not modify ports of DEFAULT_SERVERS
DEFAULT_SERVERS should be immutable
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Low 35/100
This commit fixes a bug where Electrum's built-in list of default servers could be accidentally modified by normal code. The fix makes a deep copy of the server list before returning it, so callers cannot change the original. This is a defensive coding fix that prevents potential network misdirection or connection problems, but the commit itself does not describe a specific security vulnerability or active attack.
Fix the cache key of the scheduled Android CI build which failed at the `Cache buildozer (p4a)` step with the following error: ``` Error: The template is not valid. .github/workflows/builds.yml (Line: 113, Col: 16): hashFiles('contrib/android/**') failed. Fail to hash files under directory '/home/runner/work/electrum/electrum' ```
Probably it failed because the `contrib/android/.cache` directory got included in the cache key, which worked on Cirrus. This specifies the cache key hash inputs explicitly.
92/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This is a routine fix for an Android CI build workflow. The GitHub Actions cache key was failing because it tried to hash files in a directory that could not be read. The patch explicitly excludes the problematic directory from the hash. There is no security issue here.
Lower-priorityplugin: nwc: change default relay used for new NWC connectionsby f321x · 460a7e1d · May 29, 2026 · 1 fileMessage 85 · StrongInformational 19Details
Commit message · f321x
plugin: nwc: change default relay used for new NWC connections
The default relay is the one that is positioned first in a NWC connection string. This matters because most clients only use the first relay and ignore the following ones.
We set the Alby relay as default because they operate it specifically for NWC. However it doesn't seem to work anymore, client requests time out. I suspect they drop NIP-04 encrypted events to push wallets to implement the newer NIP-44 encryption. We should eventually implement this. The primal relay happily accepts NIP-04 encrypted NWC events so lets use this as default.
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 19/100
This commit simply changes the default internet relay address used by Electrum's NWC (Nostr Wallet Connect) plugin from Alby's server to Primal's server. It is a configuration change, not a code vulnerability fix. The commit message explains that Alby's relay appears to be timing out for older encrypted messages, so the developers are switching to a relay that still accepts them. There is no security bug being patched here.
Lower-priorityci: security review: bump claude model 4.7 -> 4.8by f321x · ed83982f · May 29, 2026 · 1 fileMessage 93 · StrongInformational 15Details
Commit message · f321x
ci: security review: bump claude model 4.7 -> 4.8
Anthropic released a new model again. The pricing/token consumption is the same as 4.7. This improves the quality of the code review CI. https://platform.claude.com/docs/en/about-claude/models/whats-new-claude-4-8
93/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
AI analysis · Informational 15/100
This commit only changes the version number of an AI model used in an optional continuous-integration (CI) security-review script, from Claude 4.7 to Claude 4.8. It does not touch Electrum's wallet code, networking, cryptography, or any code that end users run. There is no security issue here.
Lower-prioritympp_split: stop returning splits without amountsby f321x · c47c5d50 · May 28, 2026 · 2 filesMessage 68 · AdequateLow 48Details
Commit message · f321x
mpp_split: stop returning splits without amounts
`mpp_split.suggest_splits()` would return payment split configurations with no split amounts like: `{(channel_id, node_id): []}`.
This is unintuitive and introduced two bugs:
1. `LNWallet.create_routes_for_payment()` evaluates `is_multichan_mpp = len(sc.config.items()) > 1`. So even if the actual payment amount gets split onto a single channel this would falsely evaluate `True` if there is a empty split.
2. `is_direct_path = all(node_id == paysession.invoice_pubkey for (chan_id, node_id) in sc.config.keys())` similarly might incorrectly evaluates `False` if the split contains an empty split for another `node_id`.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 48/100
This commit fixes a bug in Electrum's Lightning payment splitting logic. Previously, the software could create payment plans that included empty 'splits' for channels that weren't actually being used. This caused two downstream checks to misclassify payments: a single-channel payment could be treated as a multi-channel payment, and a direct payment to the intended recipient could be treated as a routed payment. These misclassifications could lead to less efficient routing, higher fees, or routing failures rather than direct payment success.
Lower-priorityci: document where to get API keys fromby SomberNight · 4b65ef77 · May 26, 2026 · 2 filesMessage 57 · ThinInformational 15Details
Commit message · SomberNight
ci: document where to get API keys from
57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit only adds comments to two GitHub workflow files explaining where API keys come from and what permissions they need. It does not change any code behavior, secrets handling, or access controls. There is no security issue here.
f321x said: > maybe a peer could just fill up our sockets outgoing buffer by ~234mb/h > if they stop reading from their socket and keep sending pings every second.
Co-authored-by: f321x <f@f321x.com>
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
explicit security language
AI analysis · Moderate 55/100
This change fixes a potential denial-of-service weakness in Electrum's Lightning network peer handling. Previously, when Electrum replied to a peer's 'ping' message, it would add the reply to the outgoing socket buffer without waiting to confirm it could actually be sent. A malicious peer that accepts data very slowly (or not at all) could trick Electrum into piling up hundreds of megabytes of unsent replies in memory each hour. The patch makes the reply wait until the socket can drain the data, limiting memory growth.
Lower-prioritylnpeer: add some rate-limiting against ping floodby SomberNight · 262c1eb0 · May 26, 2026 · 1 fileMessage 68 · AdequateModerate 51Details
Commit message · SomberNight
lnpeer: add some rate-limiting against ping flood
A remote peer could send us lots of small ping messages, requesting large pong responses. This is cheap for them but potentially expensive for us. Does not seem too serious, but I think we could add some rate-limiting.
note: There are many ways for a remote peer to inflate our incoming traffic usage, but the cost of that is usually shared between them and us (they need to send the data, we receive it).
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Moderate 51/100
This change adds a simple speed bump to stop a connected Lightning peer from bombarding an Electrum node with tiny 'ping' messages that force the node to send back large 'pong' replies. Before the patch, a peer could send pings as fast as the network allowed, making Electrum waste bandwidth and CPU generating replies. After the patch, Electrum waits at least one second between handling pings from the same peer, slowing any abuse to a trickle. The commit author notes this is not considered a serious issue.
Lower-priorityregtest.test_breach_with_spent_htlc: wait until settledby ThomasV · df00f838 · May 26, 2026 · 1 fileMessage 87 · StrongInformational 15Details
Commit message · ThomasV
regtest.test_breach_with_spent_htlc: wait until settled
In some cases the test failed because alice didnt have enough time to settle. Also remove useless sleep
87/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Explains rationale or failure mode✓ Mentions testing or verification
AI analysis · Informational 15/100
This commit only changes a regression test script. It replaces a quick check that sometimes failed with a proper wait routine, and removes an unnecessary one-second sleep. There is no change to the actual Electrum wallet or Lightning code that users run.
`OnionHopsDataSingle.to_bytes()` already accounts for the onions hmac internally, it seems incorrect that we were additionally adding `PER_HOP_HMAC_SIZE` to the payload size of the payload returned by `.to_bytes()`.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 35/100
This commit fixes a bug in Electrum's Lightning payment routing where the size of a per-hop authentication value (HMAC) was being counted twice when building onion packets. The fix removes the extra count, which could previously have caused Electrum to think a trampoline payment payload was larger than it actually is. The practical effect is likely limited to routing failures or incorrect payload budgeting for trampoline payments, rather than direct theft of funds.