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
Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.
Lower-priorityonion_message: factor out get_blinded_paths_to_me from get_blinded_reply_paths. the former also calculates payinfo information for payment scenarios. include payment_relay struct for payment blinded_paths.by Sander van Grieken · b7a51284 · Apr 1, 2026 · 1 fileMessage 73 · AdequateInformational 11Details
Commit message · Sander van Grieken
onion_message: factor out get_blinded_paths_to_me from get_blinded_reply_paths. the former also calculates payinfo information for payment scenarios. include payment_relay struct for payment blinded_paths.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 11/100
This commit refactors how Electrum builds private (blinded) communication and payment paths through the Lightning network. It splits a reply-path helper into a more general helper that can also build payment paths, and adds the routing/fee details required by the Lightning protocol for payment blinded paths. There is no direct evidence in the commit that this fixes a security bug; it appears to be feature/protocol-completion work.
set restrictive unix umask application-wide by default
- I noticed we were creating the RPC server unix domain socket with 0o775. Instead of hunting down each individual line we create files/dirs, we should just set a restrictive umask by default. We can still use chmod to relax this for individual files. -- but we should try to be secure by default - note: bitcoin core does the same https://github.com/bitcoin/bitcoin/blame/2fe76ed8324af44c985b96455a05c3e8bec0a03e/src/common/system.cpp#L92 - the umask is set in run_electrum as opposed to __init__.py so that we don't side-effect use-cases where electrum is imported as a library
93/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference
AI analysis · Moderate 52/100
This change makes Electrum create files and folders with stricter default permissions, so other users on the same computer cannot read or modify them. The developer noticed the RPC socket was being created with overly permissive permissions (0o775, meaning group members had full access), and decided to tighten the default for all files rather than fixing each case individually. It is a proactive hardening patch, not a fix for a reported exploit.
Security candidatedaemon: set restrictive permission on RPC-server unix domain socketby SomberNight · 9d204abf · Mar 27, 2026 · 1 fileMessage 50 · ThinModerate 65Details
Commit message · SomberNight
daemon: set restrictive permission on RPC-server unix domain socket
0600 instead of 0775.
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
credential or privilege state
AI analysis · Moderate 65/100
Electrum's background daemon runs a local control server using a Unix domain socket. Previously, that socket file was created with permissions 0775, meaning any user in the same group could connect to it and potentially control the wallet. This commit changes the permissions to 0600, so only the wallet's owner can access the socket. The commit itself notes a possible race condition: for a brief moment after the socket is created and before the permissions are tightened, other users might still be able to connect.
looks like if there is an overlap between automatic and manual, manual wins
72/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
AI analysis · Informational 15/100
This commit adjusts a CI (continuous integration) configuration so that an automated LLM security-review task is triggered automatically only for users with write or admin permissions, while a manual trigger is used for everyone else. It is a workflow tweak with no direct effect on Electrum's wallet code, cryptography, or user-facing security.
Lower-priorityci: add claude code code reviewby f321x · 88f9c49a · Mar 27, 2026 · 3 filesMessage 85 · StrongInformational 15Details
Commit message · f321x
ci: add claude code code review
Adds a CI step to the Cirrus CI which will run claude code on the diff of a Pull Request and fail if it finds critical security vulnerabilities or serious code issues. Optinally it can be given a GitHub api key to create a comment in the pull request.
85/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
AI analysis · Informational 15/100
This commit adds a new automated security-review step to Electrum's continuous integration (CI) pipeline. It does not change any wallet, networking, or cryptographic code. Instead, it introduces a script that sends pull-request diffs to Anthropic's Claude Code AI for a security scan and can post results back to GitHub. There is no vulnerability being fixed or introduced here; it is purely a tooling change.
Lower-prioritytrampoline: prevent adding ourself on the routeby f321x · 11f0a68c · Mar 27, 2026 · 1 fileMessage 98 · StrongLow 33Details
In the regtest bob would now signal trampoline support due to #10541 and include Alice into the invoice trampoline as he is connected to Alice. Alice would then try to add herself onto the trampoline route, causing the payment to fail.
98/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
AI analysis · Low 33/100
This commit fixes a bug in Electrum's Lightning trampoline routing where a payer could accidentally include themselves as a hop on the payment route. When a user had a direct channel with the recipient, their own public key could appear in the invoice's trampoline list, and the routing code would then try to route the payment through themselves. This caused legitimate payments to fail. The fix simply removes the user's own public key from the list of candidate trampoline hops before building the route.
Security candidatecrypto.py: replace sys.exit with ImportErrorby SomberNight · d3321265 · Mar 27, 2026 · 1 fileMessage 60 · AdequateInformational 19Details
Commit message · SomberNight
crypto.py: replace sys.exit with ImportError
not nice to call sys.exit from inside the library (run_electrum can do it, but the library probably should not)
60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
cryptography-sensitive path
AI analysis · Informational 19/100
This commit changes a single line in Electrum's crypto library. Previously, if required encryption packages were missing, the library would abruptly terminate the entire program with sys.exit. Now it raises a standard ImportError instead, which is the normal Python way to report a missing dependency. This is a code-quality and robustness improvement, not a fix for an active security vulnerability. The main practical benefit is that other programs importing Electrum's crypto module will get a catchable exception rather than having their process killed.
Check if self.network before trying to access it. This would trigger an exception when toggling the trampoline checkbox in offline mode: ``` 29.13 | E | gui.qt.exception_window.Exception_Hook | exception caught by crash reporter Traceback (most recent call last): File "/home/user/Documents/electrum/electrum/gui/qt/settings_dialog.py", line 133, in on_trampoline_checked self.network.run_from_another_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'run_from_another_thread' 31.00 | E | gui.qt.exception_window.Exception_Hook | exception caught by crash reporter Traceback (most recent call last): File "/home/user/Documents/electrum/electrum/gui/qt/settings_dialog.py", line 131, in on_trampoline_checked self.network.start_gossip() ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'start_gossip' ```
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
second-pass: broader security terminology
AI analysis · Informational 19/100
This commit fixes a simple crash bug in Electrum's settings window. When the user toggled a Lightning network option while running offline (no network connection), the program tried to use a non-existent network object and crashed with an error. The fix adds a safety check to skip network calls when there is no network connection.
plugin: nwc: handle missing params dict in request
Even though the NIP-47 specification kind of defines that requests should always pass a params dict in their request i witnessed way too often that clients don't include it in some requests where it is technically not neccessary and we fail on it. Handling this gracefully improves compatibility without obvious downsides.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 21/100
This is a small compatibility fix for the NWC (Nostr Wallet Connect) plugin in Electrum. It changes how incoming client requests are read so that if a request does not include a 'params' section, the server treats it as an empty params dictionary instead of crashing. The change makes Electrum work with more third-party NWC clients, but it does not appear to introduce a security vulnerability on its own.
AI review queuedfollow-up prevby SomberNight · 7afec538 · Mar 27, 2026 · 1 fileMessage 28 · OpaqueInformational 15Details
Commit message · SomberNight
follow-up prev
28/100 · OpaqueMessage clarity
✓ Subject identifies a change! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100
This is a tiny code cleanup that removes an unused 'self' parameter from a static method. It does not change what the code does or fix any security problem. It is a follow-up to a previous commit.
Lower-priorityplugin.py: fix some type hintsby SomberNight · a5085190 · Mar 26, 2026 · 1 fileMessage 45 · ThinInformational 18Details
Commit message · SomberNight
plugin.py: fix some type hints
45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 18/100
This commit is a small code-quality patch that fixes type hints and one error message in Electrum's plugin loader. It does not appear to fix a security vulnerability. The most notable change is that a missing plugin icon now raises a clearer exception instead of returning None, which is a behavior change but not a security-relevant one.
Lower-priorityplugins: use decorator to early return if plugin not authorizedby ThomasV · 032dfcf1 · Mar 26, 2026 · 1 fileMessage 50 · ThinModerate 65Details
Commit message · ThomasV
plugins: use decorator to early return if plugin not authorized
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Moderate 65/100
This commit tightens Electrum's plugin authorization checks. Previously, some plugin-loading paths could execute parts of a plugin even if the user had not authorized it. The change adds early 'return' or 'assert' checks so unauthorized plugins are skipped before their code is loaded or run. This reduces the chance that a malicious or unwanted plugin could activate without explicit permission.
The ReceiveTab gets updated regularly (e.g. when syncing headers). Every time it updates we would first show the invoice and then the zeroconf confirmation overlay. This caused the overly to appear flickering when there are updates in higher frequency.
Also we need to keep state if the user has already confirmed the zeroconf message for this request, otherwise the question will re-appear each time the user clicked "Accept" and the ReceiveTab updates again.
80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 15/100
This commit fixes a user-interface flickering bug in Electrum's 'Receive' tab. When the wallet synced new blockchain headers, the zeroconf (zero-confirmation) warning overlay would briefly disappear and reappear, and after a user clicked 'Accept' the warning could come back again. The patch remembers whether the user already accepted the warning for the current payment request and reorders widget updates to stop the flicker. There is no security vulnerability here.
Lower-prioritylnpeer: don't signal OPTION_ZEROCONF_OPT to untrusted peerby f321x · a06c8bac · Mar 26, 2026 · 3 filesMessage 85 · StrongLow 37Details
Commit message · f321x
lnpeer: don't signal OPTION_ZEROCONF_OPT to untrusted peer
Only signal `OPTION_ZEROCONF_OPT` to peers if we either: 1. Have no trusted peer configured (assuming that we are LSP) 2. Have a trusted peer configured, and the peer we are connecting to is this trusted peer.
Otherwise peers that are LSPs but are not the clients trusted LSP might try to open a channel to the client but it would get rejected.
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 37/100
This commit changes how Electrum advertises a Lightning feature called 'zeroconf' (zero-confirmation channels). Previously, a user's wallet could tell any Lightning peer that it supports zeroconf channels, even untrusted ones. That could mislead a non-trusted Lightning Service Provider (LSP) into trying to open a special channel that the wallet would then reject, causing confusion, failed channel opens, and possibly minor privacy or denial-of-service issues. The fix makes the wallet only advertise zeroconf support to a specifically trusted LSP, or when the wallet itself acts as an LSP with no trusted peer configured.
AI review queuedlnwallet: make jit fees configurable, add mining feesby f321x · 85356e55 · Mar 26, 2026 · 4 filesMessage 85 · StrongLow 33Details
Commit message · f321x
lnwallet: make jit fees configurable, add mining fees
Make the just in time channel fees and channel size configvars, as in practice not every provider would use the same hardcoded fees or channel sizes. Add the mining fees required for the funding transaction on top of the opening fees to prevent opening channels at a loss in a higher fee environment.
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 33/100
This commit changes how Electrum calculates fees for 'just-in-time' (JIT) Lightning channels. Previously the channel size and opening fee were hardcoded; now they are configurable settings. More importantly, the code now adds the actual Bitcoin mining fee for the funding transaction on top of the service fee, so the Lightning Service Provider (LSP) does not accidentally open channels at a loss when on-chain fees are high. It also rejects payments that would be too small after deducting those fees. This is a business-logic/economic fix rather than a remote code-execution vulnerability.
AI review queuedtests: add unittests for LNWallet just in time openingby f321x · a3f12506 · Mar 26, 2026 · 1 fileMessage 83 · StrongInformational 15Details
Commit message · f321x
tests: add unittests for LNWallet just in time opening
Adds unittests for `LNWallet.open_channel_just_in_time()`, `LNWallet._cleanup_failed_jit_channel()`, `LNWallet.can_get_zeroconf_channel()` and `LNWallet.receive_requires_jit_channel()`.
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100
This commit only adds new automated tests for an existing Lightning Network feature called 'just-in-time channel opening.' It does not change the actual wallet or payment-handling code that users run. There is no security fix or vulnerability introduced here.
Lower-priorityopen_channel_just_in_time: add cleanup and broadcast retryby f321x · 2eac67b4 · Mar 26, 2026 · 1 fileMessage 73 · AdequateLow 42Details
Commit message · f321x
open_channel_just_in_time: add cleanup and broadcast retry
Adds cleanup logic to `LNWallet.open_channel_just_in_time` so that the channel provider removes unfunded channels again, e.g. if the client didn't release the preimage or the provider failed to broadcast the funding transaction.
Also adds more robust transaction broadcast logic so we retry to broadcast if it failed and check against adb to see if any previous broadcast was successful.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 42/100
This commit hardens Electrum's 'just-in-time' Lightning channel opening. It makes the service provider automatically clean up half-open channels if the payment fails, and retry broadcasting the funding transaction more reliably. The main risk being fixed is that a provider could get stuck with an unfunded channel or lose track of whether the funding transaction was actually sent, which could lead to lost funds or service disruption.
Lower-prioritylnworker: stop setting static jit alias for jit channelby f321x · f56e1caf · Mar 26, 2026 · 2 filesMessage 95 · StrongLow 26Details
Commit message · f321x
lnworker: stop setting static jit alias for jit channel
...so we can have multiple just in time channels with the same lsp. We already save a remote scid alias in `on_channel_ready` which we already have received after the new zeroconf channel is in open state. So setting the alias to the static node id hash is counterproductive because it doesn't allow to differentiate between channels.
Also extends the regtest (`just_in_time`) to do a second channel opening, to cover this scenario. This doesn't add much runtime to the test, so the cost seems reasonable.
95/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
AI analysis · Low 26/100
This change fixes a bug in Electrum's Lightning 'just-in-time' (JIT) channel feature. Previously, every JIT channel opened with the same Lightning service provider (LSP) was being assigned the same internal identifier derived from the LSP's public key. That made it impossible to tell multiple JIT channels apart, which could confuse routing and prevent a user from having more than one usable JIT channel with the same LSP. The patch stops setting that duplicate identifier and instead relies on a remote alias already received when the channel becomes ready. A test is added to verify that two JIT channels can be opened successfully.
AI review queuedlnworker/config: check if zeroconf is enabled when forwardingby f321x · 2da9fbbf · Mar 26, 2026 · 4 filesMessage 73 · AdequateLow 43Details
Commit message · f321x
lnworker/config: check if zeroconf is enabled when forwarding
On LSP side we were only checking if ACCEPT_ZEROCONF_CHANNELS is enabled while forwarding a non-trampoline htlc. During trampoline forwarding the config was ignored.
The ACCEPT_* prefix implied this was only for accepting inbound zeroconf channels, but it also controls whether we open them when forwarding HTLCs.
Renames the config var to OPEN_ZEROCONF_CHANNELS to clarify it enables zeroconf channel opens in both directions, and add the missing check when forwarding trampoline HTLCs.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 43/100
This commit fixes a configuration check in Electrum's Lightning Network code. Previously, when forwarding payments through a trampoline node, the software ignored a setting meant to control whether it opens special 'zeroconf' channels. The patch makes the code check that setting consistently and renames it from 'accept' to 'open' to better reflect that it controls opening channels in both directions. This is a defensive fix to prevent unintended channel opens.
Fixes AbstractChannel.update_unfunded_state to stop calling a non-existent method (unwatch_channel). Adds unittest to execute the zeroconf path of update_unfunded_state.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 44/100
This commit fixes a bug in Electrum's Lightning code that handled 'zeroconf' channels—channels that are usable before their funding transaction is confirmed on the Bitcoin blockchain. The old code would crash because it tried to call a method that no longer exists, and it could also remove a channel too early or leave a user exposed to a scamming payment provider. The fix makes the code more careful: it waits until the wallet is fully synced, freezes the channel so it isn't advertised for receiving more payments, and only removes the channel after a longer timeout. It also adds a unit test to cover this code path.
Check the just-in-time channel opening fee when receiving an incoming channel opening.
60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Moderate 64/100
This commit adds a safety check for Electrum's Lightning 'just-in-time channel opening' feature. When someone opens a payment channel to you on the fly, the remote party can propose an extra opening fee. Previously the code accepted any fee with only a 'todo' comment. Now it rejects the channel if that fee exceeds 10% of the channel's funding amount. Without this check, a malicious or misconfigured Lightning Service Provider (LSP) could potentially charge an unreasonably high opening fee.
AI review queuedtest_lnwallet: unittest trampoline invoice_feature and r_tagby f321x · ac87eea0 · Mar 26, 2026 · 1 fileMessage 73 · AdequateInformational 12Details
Commit message · f321x
test_lnwallet: unittest trampoline invoice_feature and r_tag
Add unittest that verifies we only include r_tags for trampoline nodes if we signal trampoline support in the invoice_features and only signal trampoline support if we use trampoline or have only open trampoline channels.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 12/100
This commit only adds a new automated test for Electrum's Lightning wallet. It checks that when creating a Lightning invoice, the wallet correctly decides whether to advertise 'trampoline routing' support and which routing hints to include based on the types of channels the user has open. It does not change any production wallet code, so it cannot directly introduce or fix a security vulnerability on its own.
Lower-priorityLNWallet: set trampoline invoice feature independentlyby f321x · 609a2746 · Mar 26, 2026 · 2 filesMessage 73 · AdequateLow 35Details
Commit message · f321x
LNWallet: set trampoline invoice feature independently
Make the trampoline signaling in bolt11 invoices dependent upon all unfrozen channels being with trampoline peers instead of the trampoline config. Stops automatically freezing non-trampoline channels for receiving if trampoline is enabled.
One effect of this change is that now we don't signal trampoline support anymore in the invoice even if trampoline is enabled, if one of the channels is with a non trampoline peer.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 35/100
This commit changes how Electrum decides whether to advertise 'trampoline routing' support on Lightning invoices and stops automatically freezing non-trampoline channels for receiving when trampoline mode is on. Previously, enabling trampoline could silently block payments through non-trampoline channels; now the wallet only advertises trampoline if every usable channel supports it, and users can receive through non-trampoline channels again. The change is more of a bug fix / behavior correction than a critical security patch, but it could affect payment routing and user expectations.
Lower-priorityLNWallet: only include tramp r_tags if tramp featureby f321x · 0265c707 · Mar 26, 2026 · 1 fileMessage 65 · AdequateLow 49Details
Commit message · f321x
LNWallet: only include tramp r_tags if tramp feature
Only include r_tags for trampoline nodes in a bolt11 invoice if its invoice_features signal trampoline support.
65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Low 49/100
This commit changes how Electrum generates Lightning Network invoices. Previously, routing hints could include regular (non-trampoline) channels even when the invoice advertised support for trampoline routing. Now, if the invoice says it supports trampoline routing, only trampoline-capable channels are included as hints. This makes the invoice's advertised features consistent with the actual routing hints, which can prevent payment failures or routing confusion for wallets that rely on those hints.
qt gui: more defensive 'gui' RPC (i.e. URI) handling
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Moderate 53/100
This commit hardens how the Electrum desktop wallet handles Bitcoin payment URIs received through its internal RPC interface. Before the change, an attacker who could already talk to Electrum's local RPC server might be able to silently change the recipient and amount on the user's Send tab while the user was in the middle of creating a different payment. The patch now shows a notification, clears the existing payment fields, and then fills in the new URI, making the change visible and preventing leftover values (such as an amount from a previous payment) from being reused unexpectedly.