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
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.
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.
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.
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.
AI review queuedwallet history: also add fiat value to child txby f321x · c438f1df · Sep 8, 2025 · 1 fileMessage 60 · AdequateInformational 18Details
Commit message · f321x
wallet history: also add fiat value to child tx
Makes `get_full_history` also add the fiat values to the children of a tx, not only to the group itself.
60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 18/100
This commit is a minor user-interface fix for Electrum's transaction history. Previously, when showing a group of related transactions, the fiat (local currency) value was only shown for the parent/group entry and not for each child transaction. The change loops through both the parent and child entries so each gets its own fiat value. There is no indication this is a security fix; it appears to be a display completeness improvement.
AI review queuedcommands: add clear error that plugin commands cannot be run with -oby SomberNight · 7455cf9d · Sep 5, 2025 · 1 fileMessage 73 · AdequateInformational 22Details
Commit message · SomberNight
commands: add clear error that plugin commands cannot be run with -o
note that atm none of the plugin commands are explicitly marked with 'n' but all require it. Also note that 'w' for plugin commands kind of implies 'n' anyway, as the 'load_wallet' hook relies on having a daemon.
``` $ ./run_electrum -o --testnet labels_pull Password: 1.96 | E | __main__ | error running command (without daemon) Traceback (most recent call last): File "/home/user/wspace/electrum/./run_electrum", line 587, in handle_cmd result = fut.result() File "/usr/lib/python3.13/concurrent/futures/_base.py", line 456, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/home/user/wspace/electrum/./run_electrum", line 267, in run_offline_command result = await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/wspace/electrum/electrum/commands.py", line 202, in func_wrapper return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/wspace/electrum/electrum/commands.py", line 2214, in func_wrapper kwargs['plugin'] = daemon._plugins.get_plugin(plugin_name) ^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute '_plugins' ```
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
second-pass: broader security terminology
AI analysis · Informational 22/100
This commit fixes a crash in Electrum's command-line tool. When a user ran a plugin-provided command in offline mode (using the -o flag), the program tried to access a daemon object that didn't exist, causing an ugly AttributeError. The patch makes two changes: it automatically marks all plugin commands as requiring a daemon, and it adds an explicit check so the program fails cleanly if a plugin command is somehow run without a daemon. This is a robustness/usability fix rather than a security vulnerability.
AI review queuedkeystore: get_private_keys should not return Noneby SomberNight · 75195b66 · Sep 5, 2025 · 3 filesMessage 68 · AdequateLow 33Details
✓ 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 33/100
This commit fixes a small but real bug in Electrum's handling of private key imports. Previously, when a user pasted an empty or invalid list of private keys, the function returned 'None' (meaning 'nothing'). Some parts of the code treated 'None' as if keys were present, which could let an empty or invalid import proceed unexpectedly. The fix makes the function return an empty list instead, so callers correctly recognize there are no valid keys. The direct security impact is limited because the user still has to initiate an import and supply input, but it removes a logic trap that could mishandle private key material.
AI review queuedqml: add some type hints to qetxfinalizerby SomberNight · c8a14cc2 · Sep 1, 2025 · 3 filesMessage 45 · ThinInformational 15Details
Commit message · SomberNight
qml: add some type hints to qetxfinalizer
45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! 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 Python type hints and fixes a minor return-value consistency bug in the QML GUI code. It does not change runtime behavior in a security-relevant way, and there is no indication it fixes a vulnerability.
AI review queuedqt: receive tab: also suggest swap for 0 amnt reqby f321x · a62dbb56 · Sep 1, 2025 · 2 filesMessage 80 · StrongInformational 18Details
Commit message · f321x
qt: receive tab: also suggest swap for 0 amnt req
Also suggest a submarine swap if the user creates a 0 amount invoice and has 0 sat incoming liquidity as it won't be possible to receive anything. Users potentially just open a channel, then want to create a lightning invoice without amount like they are used to from onchain addresses, and then wonder why receiving doesn't work. So we should at least propose a swap if there is no inbound liquidity at all.
80/100 · StrongMessage clarity
✓ 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 · Informational 18/100
This commit is a small user-experience improvement in the Electrum Bitcoin wallet's Qt receive tab. It makes the wallet suggest a 'submarine swap' (a way to gain inbound Lightning capacity) even when the user creates a zero-amount Lightning invoice, if they currently have no incoming liquidity. It also tweaks some help messages shown to users. There is no security vulnerability here.
AI review queuedqml: use declarative form for invoiceResolved and requestResolved in WalletMainViewby Sander van Grieken · 313c8a13 · Aug 27, 2025 · 2 filesMessage 65 · AdequateInformational 15Details
Commit message · Sander van Grieken
qml: use declarative form for invoiceResolved and requestResolved in WalletMainView
(cherry picked from commit 78b2e3df6c47ad5d5d119cbc2372e62807f372fd)
65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100
This commit is a minor code-quality refactor in Electrum's mobile/QML user interface. It changes how two internal signals (invoiceResolved and requestResolved) are declared and connected, switching from an imperative connection in Python to a declarative connection in QML. There is no visible security relevance: no input validation, cryptography, network handling, or asset-moving logic is changed.
AI review queuedqml: separate PI resolving from QEInvoiceParserby f321x · b90090e2 · Aug 27, 2025 · 8 filesMessage 68 · AdequateInformational 10Details
Commit message · f321x
qml: separate PI resolving from QEInvoiceParser
separates the resolving step from the QEInvoiceParser so the 'recipient' can be resolved first and then either an QEInvoiceParser can be used if it is a sending request that has been resolved (invoice, address, lnurlp, ...), or RequestDetails can be used if the resolved 'recipient' turns out to be a voucher/LNURLW string.
# Conflicts: # electrum/gui/qml/qeinvoice.py
68/100 · AdequateMessage clarity
✓ 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 10/100
This commit is a code cleanup in Electrum's mobile/QML user interface. It splits the job of interpreting a payment string (like a Lightning invoice or LNURL link) into two parts: one that resolves/fetches remote details, and one that handles the resulting payment or withdrawal request. There is no indication in the commit that it fixes a security bug or vulnerability; it appears to be a refactor to support voucher/LNURL-withdrawal flows more cleanly.
AI review queuedlnurl: implement LNURL-withdrawby f321x · fdeada3f · Aug 27, 2025 · 9 filesMessage 58 · ThinLow 28Details
Commit message · f321x
lnurl: implement LNURL-withdraw
adds handling of lnurl-withdraw payment identifiers which allow users to withdraw bitcoin from a service by scanning a qr code or pasting the lnurl-w code as "sending" address.
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 28/100
This commit adds a new feature to Electrum that lets users withdraw bitcoin from a service by scanning or pasting an LNURL-withdraw code. It is a feature addition, not a fix for a known vulnerability. The code does include some safety checks, such as only allowing HTTPS or .onion callback URLs and warning users not to trust error messages from the LNURL server. However, because this is brand-new code handling real money withdrawals and interacting with external services, it introduces new attack surface. There is no direct evidence in the commit of an exploitable bug, but the change is security-relevant by nature.
AI review queuedqml: LoadingWalletDialog: add some paddingby f321x · f1dfe5e2 · Aug 27, 2025 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · f321x
qml: LoadingWalletDialog: add some padding
add some padding at the bottom of the LoadingWalletDialog so the spinning circle is not directly at the bottom of the dialog, looks a bit nicer this way.
68/100 · AdequateMessage clarity
✓ 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 15/100
This commit is a purely cosmetic user-interface tweak. It adds 20 pixels of empty space at the bottom of a loading dialog so the spinning circle is not touching the dialog edge. There is no security relevance.
AI review queuedcontrib: add "set -e" to bash scripts where missingby SomberNight · d9480fe3 · Aug 25, 2025 · 4 filesMessage 50 · ThinInformational 18Details
Commit message · SomberNight
contrib: add "set -e" to bash scripts where missing
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: security-sensitive path
AI analysis · Informational 18/100
This commit adds 'set -e' to four helper shell scripts used during Electrum's build and release process. 'set -e' makes a bash script stop immediately if any command fails, rather than continuing with potentially broken or incomplete results. This is a hardening improvement for the build pipeline, not a fix for an active security flaw in the wallet software itself. It reduces the risk that a failed build step goes unnoticed and produces a bad release artifact.
AI review queuedprepare release 4.6.2by SomberNight · c9511264 · Aug 24, 2025 · 2 filesMessage 38 · OpaqueInformational 15Details
Commit message · SomberNight
prepare release 4.6.2
38/100 · OpaqueMessage clarity
✓ Subject identifies a change✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100
This commit is a routine release-preparation change. It only updates the version number from 4.6.1 to 4.6.2 and adds release notes describing many bug fixes and minor features. There is no code change that could directly introduce or fix a security vulnerability in this specific commit.
AI review queuedupdate localeby SomberNight · f98b6a39 · Aug 23, 2025 · 1 fileMessage 18 · OpaqueInformational 10Details
Commit message · SomberNight
update locale
18/100 · OpaqueMessage clarity
✓ Subject identifies a change! Too few words to establish purpose! No meaningful explanatory body
This commit is a routine update to translation/localization files (locale). It changes one line in one language file. There is no indication of any security relevance.
AI review queueddaemon: load_wallet: add force_check_password arg, and use it in qmlby SomberNight · 92bdc4d4 · Aug 23, 2025 · 3 filesMessage 81 · StrongLow 29Details
Commit message · SomberNight
daemon: load_wallet: add force_check_password arg, and use it in qml
- fix: qml gui errors when trying to open a wallets with only keystore-encryption - fixes https://github.com/spesmilo/electrum/issues/10171 - qml gui to prompt for password on wallet open even if wallet is not storage-encrypted
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
second-pass: broader security terminology
AI analysis · Low 29/100
This commit fixes a bug in Electrum's mobile-style QML user interface where wallets protected only by a keystore password (not file encryption) could be opened without prompting for or checking the password. The change adds an optional force_check_password flag to the wallet loading code and uses it in the QML GUI so users are always asked for the password before the wallet opens. It is a defensive fix, not an active remote exploit.
AI review queuedutil.format_satoshis: floating-point paranoiaby SomberNight · 8d8d1dba · Aug 22, 2025 · 4 filesMessage 45 · ThinLow 46Details
Commit message · SomberNight
util.format_satoshis: floating-point paranoia
45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 46/100
This commit tightens how Electrum converts numbers into displayed bitcoin amounts. It removes the ability to pass plain strings into a key formatting helper, and routes integer and float inputs through a safer Decimal conversion to avoid tiny rounding errors that can appear when computers handle decimal numbers. The change also makes one fee calculation explicitly use Decimal arithmetic. The patch is defensive and does not by itself fix a known exploitable bug, but it reduces the risk of incorrect amounts being shown or used in fee calculations.
AI review queuedtxbatcher: add comment to _to_pay_afterby SomberNight · 6d99717d · Aug 21, 2025 · 3 filesMessage 45 · ThinInformational 15Details
Commit message · SomberNight
txbatcher: add comment to _to_pay_after
45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100
This commit is a minor code-quality change. It adds a clarifying comment to a payment-batching helper, makes a type annotation more specific, and adds a hash method to a transaction output class so outputs can be used in sets or as dictionary keys. There is no security fix or behavior change visible in the diff.
AI review queuedlnpeer: rate-limit ordered_message_queuesby SomberNight · 1380ed4b · Aug 19, 2025 · 1 fileMessage 35 · OpaqueModerate 63Details
Commit message · SomberNight
lnpeer: rate-limit ordered_message_queues
35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Moderate 63/100
This commit tightens how Electrum's Lightning peer handler accepts and queues certain ordered messages. It caps per-channel message queues at 10 entries, rejects ordered messages for unknown channels, and limits a temporary-channel tracking dictionary that previously grew without cleanup. These changes reduce the risk that a malicious or misbehaving peer could exhaust memory or fill queues to disrupt the node.
AI review queuedlnpeer: rate-limit reply_channel_rangeby SomberNight · b8d989e1 · Aug 19, 2025 · 1 fileMessage 35 · OpaqueLow 46Details
Commit message · SomberNight
lnpeer: rate-limit reply_channel_range
35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Low 46/100
This commit adds a rate limit to how many unsolicited or rapid 'reply_channel_range' messages Electrum will accept from a Lightning peer. Previously, the queue that stores these replies was always created when the peer object was set up, so a remote peer could keep sending replies even when Electrum never asked for them, potentially filling memory or causing the program to fall behind. Now the queue is only created while Electrum is actively waiting for a reply, and if too many replies pile up the code slows the peer down. This looks like a hardening fix against a denial-of-service or memory-pressure issue, but the commit message does not call it a security fix.
AI review queuedswaps: more robust parsingby SomberNight · 81be0554 · Aug 19, 2025 · 3 filesMessage 35 · OpaqueModerate 58Details
Commit message · SomberNight
swaps: more robust parsing
35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body
Why it was queued
signing or wallet pathsecond-pass: opaque commit messagesecond-pass: security-sensitive path
AI analysis · Moderate 58/100
This commit hardens how Electrum parses data received from external swap servers and Nostr direct messages. It adds type checks so that fields that should be dictionaries, integers, or valid Bitcoin addresses are rejected if malformed. Without these checks, a malicious or compromised swap server could send unexpected data types (for example, a string where a number is expected, or a non-address string as a lockup address) that might cause crashes, incorrect transaction construction, or potentially trick the wallet into sending funds to the wrong place. The commit does not fix a single known exploit; it is a broad defensive-hardening patch.
AI review queuedwallet: sweep_preparations to raise UserFacingException on p2sh/etcby SomberNight · 74d2c638 · Aug 18, 2025 · 3 filesMessage 73 · AdequateLow 33Details
Commit message · SomberNight
wallet: sweep_preparations to raise UserFacingException on p2sh/etc
✓ 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 33/100
This commit fixes a bug in Electrum's 'sweep' feature, which lets users move funds from a private key into their wallet. Previously, if the private key's address type was unsupported (like some multi-signature or older script types), the app would crash with a confusing internal error instead of showing a friendly message. The patch catches that case and shows a proper user-facing error. It also adds a small guard in the mobile/QML interface to avoid trying to build a sweep transaction before the inputs are ready.