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
✓ Subject identifies a change! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100
This commit simply tidies up Python import statements in one file. It removes unused imports and merges some import lines. There is no change to program logic, no bug fix, and no security relevance.
Lower-prioritytests: clear util.callback_mgr between test casesby SomberNight · 5d1df960 · Sep 26, 2025 · 3 filesMessage 78 · AdequateInformational 18Details
Commit message · SomberNight
tests: clear util.callback_mgr between test cases
util.callback_mgr.callbacks was not getting properly cleared between tests. Every time an Abstract_Wallet or an LNWorker (or many other subclasses of EventListener) is instantiated, self.register_callbacks() is called in __init__, which puts callbacks into util.callback_mgr.callbacks. These are only cleaned up if we explicitly call Abstract_Wallet.stop() or LNWorker.stop() later, which we usually do not do in the tests.
As a result, when running multiple unit tests in a row, lots of objects created in a given testcase are never GC-ed and leak into subsequent tests. This is not only a memory leak, but wastes compute too: when events are triggered and cbs get called, these old objects also have their cbs called.
After running all (~1061) unit tests, I observe util.callback_mgr.callbacks had 30 events with a total of 3156 callbacks stored.
On my laptop, running all unit tests previously took ~115 sec, and now it takes ~73 sec.
78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 18/100
This commit is a test-suite cleanup, not a fix for a user-facing security bug. It stops old test objects from leaking between unit tests by clearing a global callback list after each test. That makes tests faster and less error-prone, but it does not change how the real Electrum wallet handles callbacks in production.
ci: appimage build: run build.sh directly instead of sub-scripts
- previously we had the CI spawn us inside a docker container as per our Dockerfile, and we ran make_appimage.sh inside that - now we also need to run make_type2_runtime.sh, which builds and runs another docker container, so the old approach does not work - follow-up https://github.com/spesmilo/electrum/pull/10019 - looks easier to just try to run build.sh, the outer script, which does all that - makes the CI task more similar to what dev machines run - at the cost of somewhat more compute
93/100 · StrongMessage clarity
✓ Specific, 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
AI analysis · Informational 15/100
This is a routine change to Electrum's automated build configuration. It switches the CI (continuous integration) setup for building the Linux AppImage from running a sub-script inside a custom Docker container to running a top-level build script on a generic Docker-enabled virtual machine. There is no user-facing change, no wallet or cryptography change, and no security fix or vulnerability introduced based on the diff.
Lower-prioritybuild: Dockerfile: mod "new user to avoid using root" to support UID=0by SomberNight · 447c7cf8 · Sep 26, 2025 · 4 filesMessage 97 · StrongInformational 18Details
Commit message · SomberNight
build: Dockerfile: mod "new user to avoid using root" to support UID=0
Extend "create new user to avoid using root" copypasta to support being run as root (ARG UID=0).
When running build.sh directly on a cirrus CI runner, we are running as root.
97/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 18/100
This commit changes several Docker build files so the build containers can optionally run as the root user (UID 0) instead of always creating a normal 'user' account. By default it still uses UID 1000, but when the build is invoked with UID=0 it skips creating an unprivileged user and runs everything as root. This is a build-hardening regression: it weakens the principle of least privilege in the build environment, but it does not directly introduce a vulnerability in the Electrum wallet software that end users run.
Security candidatebuild: docker run: make "-it" flags conditional on tty being availableby SomberNight · b676c1e9 · Sep 26, 2025 · 4 filesMessage 100 · StrongInformational 15Details
Commit message · SomberNight
build: docker run: make "-it" flags conditional on tty being available
from https://stackoverflow.com/a/69088164
I am trying to run the build.sh scripts directly on a cirrus CI runner, and "docker run -it" is erroring due to lack of a tty.
100/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference
Why it was queued
memory safety
AI analysis · Informational 15/100
This commit changes Electrum's build scripts so that when running Docker containers, the '-it' flags (which request an interactive terminal) are only added if a terminal is actually available. Previously, the scripts always used 'docker run -it', which fails in non-interactive environments like CI systems because there is no TTY. This is a build-script reliability fix with no security relevance.
Lower-priorityappimage build: split out building type2-runtime into separate .shby SomberNight · daaf7b7c · Sep 26, 2025 · 2 filesMessage 50 · ThinInformational 15Details
Commit message · SomberNight
appimage build: split out building type2-runtime into separate .sh
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100
This commit simply moves existing build instructions from one shell script into a new, separate shell script. It does not change what the build does, what software it downloads, or how it behaves. There is no security-relevant change visible in the code.
Lower-priorityci: only run coveralls on one of the unittest tasksby SomberNight · 14235083 · Sep 26, 2025 · 1 fileMessage 77 · AdequateInformational 15Details
Commit message · SomberNight
ci: only run coveralls on one of the unittest tasks
coveralls has been quite flaky recently -- let's try to lower the number of CI tasks where it spreads the flakiness.
77/100 · AdequateMessage clarity
✓ Specific, 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 is a routine tweak to the project's automated testing setup. It changes one line in the CI configuration so that the coveralls code-coverage reporting tool only runs on the Python 3.10 test job instead of on every test job. There is no change to Electrum's wallet code, cryptography, networking, or anything users interact with.
Lower-prioritycontrib: "set -e" behaves weird in subshells followed by OR. don't use.by SomberNight · ffba6061 · Sep 25, 2025 · 4 filesMessage 93 · StrongLow 41Details
Commit message · SomberNight
contrib: "set -e" behaves weird in subshells followed by OR. don't use.
This exits as expected: ``` $ cat s1.sh #!/bin/bash set -e ( echo "a" false echo "b" )
$ ./s1.sh a ``` This does NOT exit, seemingly because of the outer context?! ``` $ cat s2.sh #!/bin/bash set -e ( echo "a" false echo "b" ) || echo "c"
✓ 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 · Low 41/100
This commit fixes a subtle shell-script bug in Electrum's build scripts. Because of how Bash handles 'set -e' inside subshells followed by '||', errors inside those build steps were silently ignored instead of stopping the build. That could let a broken or incomplete build continue, potentially producing a bad release binary. The fix removes the '|| fail' wrappers so the scripts now correctly abort on failure.
transaction: SPV-verify TxInput.block_height and .spent_height
60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100
This commit only updates comments and type annotations in Electrum's code. It changes documentation strings to note that certain transaction height values are now SPV-verified (Simple Payment Verification), and adds Python type hints. No actual code behavior changes, so there is no security vulnerability introduced or fixed by this patch itself.
AI review queuedadb: change API of util.TxMinedInfo: height() is now always SPV-edby SomberNight · b944371f · Sep 24, 2025 · 21 filesMessage 50 · ThinModerate 63Details
Commit message · SomberNight
adb: change API of util.TxMinedInfo: height() is now always SPV-ed
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: unusually broad changesecond-pass: security-sensitive path
AI analysis · Moderate 63/100
This commit changes how Electrum decides whether a Bitcoin transaction is truly confirmed. Previously, parts of the code could treat a transaction as confirmed just because an Electrum server claimed it was mined at a certain block height, even before the wallet had independently verified that block header through SPV (Simple Payment Verification). Now, the wallet's central `TxMinedInfo.height()` method returns a real block height only if the transaction has also passed SPV verification; otherwise it reports the transaction as unconfirmed. This closes a class of bugs where a malicious or buggy Electrum server could trick the wallet into thinking a transaction was confirmed when it was not, which could affect spending decisions, Lightning channel state, swap refunds, and user-visible confirmation counts.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 34/100
This commit fixes a crash in Electrum's transaction builder when a user has Lightning anchor channels enabled but has disabled change addresses. Previously, the code assumed a change address would always be available and tried to access the first item of an empty list, causing an error. The fix falls back to reusing an input address for the required reserve output when no change address exists.
Lower-priorityqml: small gridlayout fix in BalanceDetailsby Sander van Grieken · 0fcd8f76 · Sep 19, 2025 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · Sander van Grieken
qml: small gridlayout fix in BalanceDetails
45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100
This is a minor user-interface layout fix in Electrum's QML (mobile/desktop GUI) code. It moves a visibility check so that an entire row showing a Lightning color key is hidden when the wallet does not support Lightning, instead of hiding only the color box and label individually. There is no security relevance.
Lower-prioritynetwork.py: do not require MyEncoder for serializing recent serversby ThomasV · 5c2c9ac9 · Sep 18, 2025 · 1 fileMessage 65 · AdequateInformational 11Details
Commit message · ThomasV
network.py: do not require MyEncoder for serializing recent servers
This class is overkill. I am trying to restrict its usage to wallet_db
65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 11/100
This commit changes how Electrum saves its list of recently used Bitcoin servers to a small file on disk. Previously it used a custom helper class called MyEncoder; now it uses Python's simpler default=str option. The change is described by the developer as a cleanup to limit MyEncoder to wallet database code. There is no direct evidence in the commit that this fixes a security vulnerability, but switching serializers can in principle change how unusual data is written or read back.
AI review queuedwallet: fix AttributeError when getting help textby f321x · b6a4ebec · Sep 16, 2025 · 1 fileMessage 76 · AdequateInformational 21Details
Commit message · f321x
wallet: fix AttributeError when getting help text
Fixes AttributeError when trying to get `num_sats_can_receive()` in wallets without lnworker. Fixes https://github.com/spesmilo/electrum/issues/8100#issuecomment-3294556043.
``` Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/electrum/gui/qt/request_list.py", line 103, in selection_changed self.receive_tab.update_current_request() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/electrum/gui/qt/receive_tab.py", line 237, in update_current_request help_texts = self.wallet.get_help_texts_for_receive_request(req) File "/usr/lib/python3.13/site-packages/electrum/wallet.py", line 3446, in get_help_texts_for_receive_request can_receive = self.lnworker.num_sats_can_receive() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'num_sats_can_receive' ```
76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 21/100
This is a simple bug fix for a crash in the Electrum Bitcoin wallet. When a user without Lightning support clicked on a receive request, the wallet tried to check Lightning receive capacity on a missing component and crashed with an AttributeError. The patch adds a safety check so the code skips the Lightning check when no Lightning worker exists. There is no security vulnerability here—just a UI crash being fixed.
✓ Subject identifies a change✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
AI analysis · Moderate 62/100
This commit changes how Electrum opens files inside external plugin ZIP archives. Previously it used the operating system's file-path joiner, which on Windows uses backslashes. ZIP archive entries always use forward-slash separators, so on Windows the old code could fail to find the requested file or behave unexpectedly. The fix forces forward slashes, making plugin file lookup reliable across all platforms. The linked issue suggests this caused a real bug, possibly a crash or broken plugin loading, but the commit message does not explicitly call it a security vulnerability.
refactor(paymentrequest): use f-string in error message
62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 15/100
This commit simply rewrites one error message to use a modern Python string-formatting style (f-string) instead of the older .format() style. It does not change what the program does, what data it handles, or how secure it is.
Lower-prioritycrash_reporter: flag reports where console was used in app_versionby SomberNight · e10cf306 · Sep 11, 2025 · 2 filesMessage 81 · StrongInformational 19Details
Commit message · SomberNight
crash_reporter: flag reports where console was used in app_version
so we don't waste time on weird reports where the user modified internals at runtime
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 19/100
This change is a small diagnostic improvement, not a security fix. When a user opens the built-in developer console in Electrum, future crash reports will have '-consoletaint' added to the app version string. This helps Electrum's support team spot bug reports from users who may have manually changed internal settings at runtime, so they don't chase false bugs. It does not prevent any attack or close a vulnerability.
AI review queuedwallet.get_full_history: rm "include_fiat" arg, infer it from fxby SomberNight · 47f1a2d7 · Sep 9, 2025 · 3 filesMessage 73 · AdequateInformational 18Details
Commit message · SomberNight
wallet.get_full_history: rm "include_fiat" arg, infer it from fx
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 18/100
This is a small code cleanup in Electrum's wallet history display. It removes a redundant 'include_fiat' setting and instead decides whether to show fiat currency values based on whether a working exchange-rate object is provided. The change also fixes a minor consistency issue where a placeholder 'parent' grouping entry could previously contain a fiat currency code even when fiat values were not supposed to be included. There is no direct security vulnerability here.
Lower-priorityqt: add_to_coincontrol: assert that coins are in self._utxo_dictby ThomasV · 61aeffd2 · Sep 9, 2025 · 1 fileMessage 50 · ThinLow 27Details
Commit message · ThomasV
qt: add_to_coincontrol: assert that coins are in self._utxo_dict
50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Low 27/100
This commit adds a safety check (an assertion) in the Electrum wallet's coin-selection feature. It ensures that any coins being added to manual coin control actually belong to the wallet's known list of coins. The change is defensive and likely follows a reported bug (issue 10206), but the commit itself does not explain whether the bug had security consequences.
Lower-priorityfix #10206: replace for loop with single operation (dicts are threadsafe)by ThomasV · 64a08f49 · Sep 9, 2025 · 1 fileMessage 58 · ThinInformational 15Details
Commit message · ThomasV
fix #10206: replace for loop with single operation (dicts are threadsafe)
58/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
AI analysis · Informational 15/100
This is a small code cleanup in Electrum's Qt wallet interface. It replaces a Python loop that built a dictionary one item at a time with a single expression that builds the dictionary all at once. The commit message says this is safe because Python dictionaries are thread-safe for single operations. The change is in the code that displays your unspent coins (UTXOs), not in transaction signing or cryptography. There is no direct evidence in the commit or supplied references that this fixes an exploitable security bug.
AI review queuedtests: restore from old "hex" seedby SomberNight · e97d8754 · Sep 8, 2025 · 3 filesMessage 55 · ThinInformational 15Details
Commit message · SomberNight
tests: restore from old "hex" seed
55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100
This commit only adds and updates automated tests for restoring an old Electrum wallet from either its word seed or its equivalent hex seed. It also adds a small clarifying comment to a helper function. There is no change to production wallet logic, no bug fix, and no security-relevant behavior change.
Lower-priorityswaps: only set swap redeemed if preimage is availableby f321x · e1de1111 · Sep 8, 2025 · 1 fileMessage 73 · AdequateLow 46Details
Commit message · f321x
swaps: only set swap redeemed if preimage is available
For forward swaps this will ensure that the swap only gets set redeemed and cleaned up after the preimage has been extracted, as it could happen that `current_height - spent_height > REDEEM_AFTER_DOUBLE_SPENT_DELAY` is true even if the preimage has not been extracted yet.
For reverse swaps this changes nothing as they always have the preimage.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 46/100
This change fixes a logic bug in Electrum's submarine swap handling. Previously, a forward swap could be marked as 'redeemed' and stop being watched before the secret payment proof (preimage) was actually extracted. Without the preimage, the wallet cannot claim the funds it is owed. The patch adds a check so the swap is only marked redeemed if the preimage is already known. This prevents premature cleanup that could strand funds or break swap accounting.
Lower-prioritylnwatcher: add some type hintsby SomberNight · b036eaf3 · Sep 8, 2025 · 3 filesMessage 45 · ThinInformational 15Details
Commit message · SomberNight
lnwatcher: add some type hints
45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100
This commit only adds Python type hints and removes two unused methods/variables. It does not change any runtime behavior, fix a bug, or alter security logic. There is no security relevance.
Catch exceptions happening to callbacks to continue calling the remaining callbacks. Otherwise if the first callback throws an exception the remaining callbacks aren't going to be called.
This commit adds error handling around a list of notification callbacks in Electrum's Lightning network watcher. Previously, if one callback crashed with an error, all remaining callbacks were skipped. Now each callback is wrapped in a try/except so the loop continues and the crash is logged. This is a robustness improvement rather than a fix for an obvious attack path.
Lower-prioritylnworker.has_anchor_channels: return False if channel is closed but not redeemed yetby ThomasV · 2d17252b · Sep 8, 2025 · 1 fileMessage 81 · StrongInformational 20Details
Commit message · ThomasV
lnworker.has_anchor_channels: return False if channel is closed but not redeemed yet
this fixes the following issue: user cannot spend max until channel is redeemed. see https://x.com/AnyoneOReally1/status/1964352775245951291
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 20/100
This is a small bug fix in Electrum's Lightning wallet. Previously, the wallet treated anchor-type channels as still 'active' even after they were closed, as long as their funds hadn't been fully swept. This caused the wallet to incorrectly reserve extra on-chain funds (preventing the user from spending their full balance) until the channel's closing transaction was fully redeemed. The fix changes the check so a closed channel is no longer considered active, allowing the user to spend their maximum available balance sooner. It is a usability/funds-availability issue, not a theft or remote-exploitation vulnerability.