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-priorityci: remove Cirrus CI configurationby f321x · a41c76f3 · May 26, 2026 · 2 filesMessage 72 · AdequateInformational 15Details
Commit message · f321x
ci: remove Cirrus CI configuration
Migration to GitHub Actions is complete. All CI tasks are now defined under .github/workflows/.
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 simply removes the old Cirrus CI configuration file and a small related check in a build script because the project has finished moving its automated testing and build tasks to GitHub Actions. There is no change to Electrum's wallet, networking, or cryptographic code, and no security vulnerability is introduced or fixed.
Migrates the four Cirrus CI binary build tasks (Windows, Android, AppImage, and source/source-only tarball) to GitHub Actions. The new workflow runs only on the nightly cron (02:30 UTC) and workflow_dispatch.
80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit simply moves Electrum's automated binary build process from one CI service (Cirrus CI) to another (GitHub Actions). It does not change the wallet application code, cryptography, or how users interact with Electrum. The nightly build schedule and produced artifacts (Windows installer, Android APK, AppImage, source tarball) remain the same in substance. There is no indication this introduces a security vulnerability.
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Names security-relevant behavior explicitly! No meaningful explanatory body
AI analysis · Informational 12/100
This commit adds a new GitHub Actions workflow that runs an automated security review on pull requests using Anthropic's Claude Code tool. It is a defensive security measure, not a vulnerability fix. The workflow is intentionally restricted so it only auto-runs for trusted maintainers; external contributors must trigger it manually after review. The change also updates the existing Python review script to read GitHub Actions environment variables instead of Cirrus CI variables.
Migrate the "locale: upload to crowdin" task from .cirrus.yml to a GitHub Actions workflow. Triggers on pushes to master (mirroring the Cirrus only_if condition) plus workflow_dispatch for manual runs.
80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
This commit adds a new GitHub Actions automation file that uploads translation files to Crowdin whenever code is pushed to the master branch. It does not change any wallet, payment, or network code, and it does not introduce any obvious security issue. It is a routine infrastructure migration from one CI service (Cirrus) to another (GitHub Actions).
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit adds a new automated CI workflow that runs a submodule-checking script whenever a Git tag is pushed. It does not change application code, fix a bug, or alter security behavior of the Electrum wallet itself. It is purely an internal testing/verification automation addition.
Migrates the 'Regtest functional tests' Cirrus CI task to GitHub Actions, running on ubuntu-24.04. Caches the bitcoind binary and libsecp256k1 build, starts bitcoind and electrumx in the background, and uploads wallet artifacts plus dumps service logs on failure.
90/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit adds a new GitHub Actions workflow file that runs Electrum's automated regtest (regression testing) functional tests on every push, pull request, and tag. It does not change any application code, wallet logic, or network behavior. It is purely a CI/CD infrastructure addition.
Replaces the Cirrus CI tasks (flake8 mandatory, flake8 non-mandatory, ban-unicode, unittests across Python 3.10-3.14 + 3.14 debug, and unittests with frozen deps) with a single .github/workflows/tests.yml.
90/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
documentation-only discount
AI analysis · Informational 15/100
This commit adds a new GitHub Actions configuration file that automatically runs code-quality checks and unit tests when code is pushed or a pull request is opened. It does not change any application code, user-facing behavior, or security-sensitive logic. It is purely an infrastructure change to the project's continuous integration (CI) system.
✓ 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 commit tightens a Python package version pin. The developer had accidentally allowed any PyQt 6.x release (e.g., 6.11, 6.12) to be installed for the optional QML GUI, when they only wanted the 6.10.x line. The change itself is a preventive dependency fix, not a patch for an active vulnerability in Electrum's code. It reduces the risk that a future, incompatible, or buggy PyQt release could break or destabilize the QML GUI.
ci: security review: increase timeout: 20 -> 60 min
Large diffs or complex contexts can take a long time to review. If the timeout kicks in too early the ressources Claude used are wasted.
90/100 · StrongMessage clarity
✓ Specific, 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 simply increases the timeout for an automated security review script from 20 minutes to 60 minutes. It does not change any wallet, networking, or cryptographic code that could affect users. There is no security vulnerability here.
AI review queuedunit tests: do not mock save_dbby ThomasV · f2ece0f4 · May 21, 2026 · 2 filesMessage 78 · AdequateInformational 15Details
Commit message · ThomasV
unit tests: do not mock save_db
Create in-memory wallets instead.
The logic of calling save_db() at specific places is specific to the current JsonDB backend, and it does not generalize well.
78/100 · AdequateMessage clarity
✓ 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 changes unit tests. It removes the practice of mocking (faking) the wallet save function and instead creates in-memory wallets that don't touch disk. There is no change to the actual Electrum wallet application or its security behavior.
Lower-prioritylnworker: LNGossip to signal OPTION_ANCHORS_OPTby SomberNight · 2e640c83 · May 20, 2026 · 1 fileMessage 68 · AdequateLow 25Details
Commit message · SomberNight
lnworker: LNGossip to signal OPTION_ANCHORS_OPT
Our LNWallet now sets OPTION_ANCHORS_REQ -- maybe other impls will do this too? LNGossip does not care about anchors but should still be able to utilise peers that require it.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 25/100
This commit adds a single Lightning Network feature flag to Electrum's gossip subsystem so it can talk to peers that require 'anchor' channel commitments. It is a compatibility/interoperability fix, not a patch for an active attack. The change signals support but does not implement anchor logic, so any security relevance is indirect (avoiding connection failures or protocol confusion with stricter peers).
Lower-prioritytests: try to make "backup" regtest less flakyby SomberNight · 5828b738 · May 20, 2026 · 3 filesMessage 78 · AdequateInformational 12Details
Commit message · SomberNight
tests: try to make "backup" regtest less flaky
Kind of shooting in the dark, but looking at logs, when the "backup" test fails, Alice logs "Sending CHANNEL_REESTABLISH" and "Sending ERROR", but Bob never receives them, instead he logs "Disconnecting: LightningPeerConnectionClosed()". Maybe Alice's TCP socket should just be flushed, as done here.
78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 12/100
This is a test-only reliability fix for a flaky automated test. The developer noticed that during a backup/restore test, one side (Alice) would send Lightning network messages and then close the connection, but the other side (Bob) sometimes never received those final messages. The change makes Alice explicitly wait for her outgoing messages to actually leave the network socket before closing it. There is no indication this is a security vulnerability or that it affects normal user operations.
Lower-prioritysubmarine_swaps: wait for broadcast in wait_for_htlcs_and_broadcastby f321x · 2a1eda4c · May 20, 2026 · 1 fileMessage 83 · StrongLow 32Details
Commit message · f321x
submarine_swaps: wait for broadcast in wait_for_htlcs_and_broadcast
Wait for broadcast of the funding transaction in `SwapManager.wait_for_htlcs_and_broadcast` before returning. Previously it might have returned the swap funding txid before the funding tx was broadcast. This caused the regtest `test_swapserver_success_forward` to fail as it expected the funding tx to be broadcast once the CLI command returned.
See: ``` .***** test_swapserver_success_forward ****** initializing alice funding alice ec354953f96e0de7be4354ab156611da9e31bd85c2d25664bdb995950530c12e initializing bob funding bob 1df19a419b5ae5b961bae6cfaf4e7c8e772c6632d30782fab8de6992a8901e4a mining 1 blocks starting daemon (PID 7471) /tmp/alice/regtest/wallets/default_wallet true starting daemon (PID 7502) /tmp/bob/regtest/wallets/default_wallet true
alice opens channel mining 3 blocks wait until alice sees channel open. wait until alice sees channel open.. wait until alice sees channel open... alice initiates forward-swap { "lightning_amount": "0.01967661", "onchain_amount": "0.02", "txid": "b0f9ba48b670ee4a1f182655fe18f3f7d5c310923b7c85ad396b24e0a2f8e0cc" } utxo b0f9ba48b670ee4a1f182655fe18f3f7d5c310923b7c85ad396b24e0a2f8e0cc:0 does not exist FDaemon stopped Daemon stopped
====================================================================== FAIL: test_swapserver_success_forward (tests.regtest.TestLightningSwapserver.test_swapserver_success_forward) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/cirrus-ci-build/tests/regtest.py", line 105, in test_swapserver_success_forward self.run_shell(['swapserver_success_forward']) File "/tmp/cirrus-ci-build/tests/regtest.py", line 19, in run_shell assert process.returncode == 0 ^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ```
Can be reproduced with: ```diff diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index f83d653f9..242aef070 100644 --- a/electrum/submarine_swaps.py +++ b/electrum/submarine_swaps.py @@ -1052,6 +1052,7 @@ class SwapManager(Logger): @log_exceptions async def broadcast_funding_tx(self, swap: SwapData, tx: Transaction) -> None: swap.funding_txid = tx.txid() + await asyncio.sleep(5) await self.network.broadcast_transaction(tx)
async def reverse_swap( ```
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Low 32/100
This commit fixes a timing bug in Electrum's submarine swap feature. Previously, when a user initiated a swap, the software could report the swap funding transaction ID back to the caller before the transaction was actually broadcast to the Bitcoin network. This meant a user or automated test might think the swap was funded and proceed, while the transaction had not yet been sent. The fix makes the code wait until the broadcast is complete before returning. There is also a small improvement in error handling when the broadcast fails.
Lower-prioritytests: lnhelpers: (trivial) mark method private, add type hintsby SomberNight · 07c45705 · May 20, 2026 · 2 filesMessage 60 · AdequateInformational 15Details
Commit message · SomberNight
tests: lnhelpers: (trivial) mark method private, add type hints
60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100
This commit only touches test helper files. It renames a helper function to start with an underscore (a Python convention for 'private'), adds a couple of type hints, and adds blank lines. There is no change to production wallet code, no bug fix, and no security relevance.
AI review queuedtests: move create_test_channels to lnhelpers.pyby SomberNight · cf91aa86 · May 20, 2026 · 4 filesMessage 55 · ThinInformational 15Details
Commit message · SomberNight
tests: move create_test_channels to lnhelpers.py
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 is a simple code cleanup in the project's test suite. It moves a helper function used to create fake Lightning payment channels from one test file into a shared test-utility file, and updates other test files to import it from the new location. No production wallet code is changed, and there is no security fix or vulnerability introduced.
AI review queuedtest_lnwallet: unittest channel rebalancingby f321x · b183a529 · May 20, 2026 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · f321x
test_lnwallet: unittest channel rebalancing
Add some unittest coverage for the channel rebalance flow.
✓ Descriptive subject✓ Provides an explanatory body✓ 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 channel rebalancing feature in Electrum. It does not change any production wallet or network code, so it cannot introduce a security vulnerability or directly fix one.
LNWallet: don't allow rebalancing through frozen channels
Don't allow rebalancing through a channel if it is frozen for the direction required for the rebalance. If this is allowed by the gui it creates opaque failures as then pathfinding potentially fails downstream.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 31/100
This commit fixes a user-experience and reliability bug in Electrum's Lightning rebalancing feature. Previously, the wallet could attempt to rebalance funds through channels that were 'frozen' (disabled for sending or receiving). This didn't cause loss of funds, but led to confusing downstream failures during route finding. The patch now blocks such rebalances early and reports a clear error.
Lower-prioritylnworker: fix rebalance with frozen channelsby f321x · 89a2f1d7 · May 20, 2026 · 1 fileMessage 98 · StrongInformational 22Details
Commit message · f321x
lnworker: fix rebalance with frozen channels
Don't exclude r_tags for frozen channels from the route creation in create_route_for_single_htlc if the start_node of the routing hint is unequal to our node id.
When doing a rebalance us (chan_1) -> bob -> us (chan_2, frozen for sending), we would exclude the invoice r_tag for chan_2 because the chan is our chan and frozen for sending, resulting in us being unable to find a route back to us trough bob.
This is a regression from #9692 (964ffbd2).
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 · Informational 22/100
This commit fixes a bug in Electrum's Lightning Network code where the wallet would incorrectly ignore routing hints for channels that are 'frozen' (temporarily blocked from sending). The bug only affected rebalancing payments where the user is both the sender and the receiver. The fix ensures frozen channels are only skipped when the routing hint truly starts at the user's own node, not when it merely passes through one of the user's channels later in the route. There is no direct evidence this is a security vulnerability; it appears to be a functional bug that could cause payment failures.
tests: ln graph_definition: allow multiple chans between peers
60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100
This commit only changes test code. It updates the test helper that builds simulated Lightning Network graphs so that test scenarios can define multiple channels between the same two peers, instead of just one. All production wallet code is untouched.
Lower-prioritytests: split off helpers from test_lnpeer into new lnhelpers.pyby SomberNight · d86b0c59 · May 20, 2026 · 3 filesMessage 60 · AdequateInformational 15Details
Commit message · SomberNight
tests: split off helpers from test_lnpeer into new lnhelpers.py
60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100
This commit is a pure test-code refactoring: it moves helper classes and functions used by Lightning Network peer tests from one file into a new shared file. No production wallet or payment logic was changed, so ordinary users are not affected.
AI review queuedlnwatcher: introduce loop to trigger callbacksby f321x · 2460b030 · May 20, 2026 · 3 filesMessage 68 · AdequateInformational 24Details
Commit message · f321x
lnwatcher: introduce loop to trigger callbacks
Introduce a taskgroup and polling loop to LNWatcher to guarantee the callbacks get called at least once every LNWatcher.MAX_CALLBACK_TRIGGER_DELAY_SEC (10 min). This should prevent callbacks that operate on time instead of blockheight from becoming (very) stale if there are no blockchain events triggering the callbacks for a longer time. Not entirely set about the 10 min delay, might as well be 5/2/1 min?
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 24/100
This commit adds a background polling loop to Electrum's Lightning watcher so that time-sensitive callbacks still run even when no new blockchain events occur for a while. It is a defensive reliability fix, not an obvious security patch, but stale watcher callbacks could in theory delay detection of channel problems. The change itself does not introduce a known vulnerability.
Deduplicate the now() helper function declared in 3 different modules into electrum.util. Use it consistently in submarine_swaps.py. Cleanup imports of lnchannel.py.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100
This commit is a routine code cleanup: it removes three separate copies of a small helper function called now() and puts a single shared copy in a common utilities file. It does not change what the function does or fix any security issue.
Lower-priorityLNGossip: put maintain_db on threadby f321x · 62656fa0 · May 19, 2026 · 2 filesMessage 68 · AdequateInformational 19Details
Commit message · f321x
LNGossip: put maintain_db on thread
I regularly see asyncio (debug) warnings that maintain_db is blocking the event loop on my relatively fast laptop.
E.g. 3 warnings during a single session: ``` 2.41 | I | channel_db.ChannelDB | Deleting 903 old policies 2.68 | I | channel_db.ChannelDB | Deleting 3954 orphaned channels 2.68 | W | asyncio | Executing <Task pending name='Task-22' coro=<LNGossip.maintain_db() running at /var/home/user/code/vibecoding_vm/electrum/electrum/lnworker.py:728> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/lib64/python3.14/asyncio/base_events.py:459> cb=[set.discard(), TaskGroup._on_done()] created at /var/home/user/code/vibecoding_vm/electrum/electrum/util.py:1756> took 0.335 seconds ... 242.71 | I | channel_db.ChannelDB | Deleting 151 old policies 243.69 | I | channel_db.ChannelDB | Deleting 11819 orphaned channels 243.69 | W | asyncio | Executing <Task pending name='Task-22' coro=<LNGossip.maintain_db() running at /var/home/user/code/vibecoding_vm/electrum/electrum/lnworker.py:728> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/lib64/python3.14/asyncio/base_events.py:459> cb=[set.discard(), TaskGroup._on_done()] created at /var/home/user/code/vibecoding_vm/electrum/electrum/util.py:1756> took 1.010 seconds ... 363.72 | I | channel_db.ChannelDB | Deleting 108 old policies 363.90 | I | channel_db.ChannelDB | Deleting 2922 orphaned channels 363.90 | W | asyncio | Executing <Task pending name='Task-22' coro=<LNGossip.maintain_db() running at /var/home/user/code/vibecoding_vm/electrum/electrum/lnworker.py:728> wait_for=<Future pending cb=[Task.task_wakeup()] created at /usr/lib64/python3.14/asyncio/base_events.py:459> cb=[set.discard(), TaskGroup._on_done()] created at /var/home/user/code/vibecoding_vm/electrum/electrum/util.py:1756> took 0.205 seconds ```
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 19/100
This commit moves two database cleanup tasks in Electrum's Lightning Network gossip code onto a separate thread so they no longer freeze the main asyncio event loop. It is a performance and responsiveness fix, not a security patch. There is no indication it fixes a vulnerability or was triggered by a security report.
Lower-prioritytests: lnchannel: also test with SRK chan typeby SomberNight · e8551d64 · May 18, 2026 · 1 fileMessage 86 · StrongInformational 15Details
Commit message · SomberNight
tests: lnchannel: also test with SRK chan type
fix regression from https://github.com/spesmilo/electrum/pull/10622, where the default for `TEST_ANCHOR_CHANNELS` was flipped from False to True.
86/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 15/100
This commit only changes test code. It renames several test classes from testing anchor channels to testing non-anchor channels, because a previous change had flipped the default test setting to use anchor channels. There is no change to the actual Electrum wallet or Lightning code that users run.
✓ Specific, descriptive subject! No meaningful explanatory body
AI analysis · Informational 12/100
This commit only adds new automated tests for an existing Lightning Network channel safety feature. It does not change any production code, so it cannot introduce a security vulnerability or directly fix one in the shipped software. The tests verify that Electrum will automatically close a Lightning channel when certain time-sensitive payment promises (HTLCs) are about to expire or have expired without proper resolution.