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.
AI review queuedfollow-up prev commitby ThomasV · cb7e550a · Dec 2, 2025 · 1 fileMessage 28 · OpaqueLow 27Details
Commit message · ThomasV
follow-up prev commit
28/100 · OpaqueMessage clarity
✓ Subject identifies a change! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Low 27/100
This is a tiny follow-up patch that widens a type check in Electrum's wallet database code. When deleting or removing an item from a stored dictionary, the code now clears the parent pointer for any 'base stored object' rather than only for nested dictionaries. Without this fix, other stored object types (such as lists) might keep a stale reference to their former parent, which could lead to inconsistent database state or unexpected behavior when the data is later modified and saved.
Lower-priorityjson_db: fix StoredDict.__delitem__() to work similarly to .pop()by SomberNight · 14fd85f9 · Dec 1, 2025 · 2 filesMessage 73 · AdequateLow 35Details
Commit message · SomberNight
json_db: fix StoredDict.__delitem__() to work similarly to .pop()
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
AI analysis · Low 35/100
This commit fixes a consistency bug in Electrum's internal JSON database. When a user or code deleted a nested dictionary using `del dict[key]`, the child dictionary was not properly told it had been removed from its parent. That meant changes made to the child after deletion could still leak into the wallet's pending database updates. The fix makes `del dict[key]` behave the same as `.pop(key)` by clearing the child's parent pointer. The included tests confirm both methods now behave identically.
Lower-prioritytests: json_db: add more asserts for clarityby SomberNight · afc87fea · Dec 1, 2025 · 1 fileMessage 55 · ThinInformational 15Details
Commit message · SomberNight
tests: json_db: add more asserts for clarity
55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100
This commit only adds extra checks to existing automated tests and slightly expands test data. It does not change any production code, wallet logic, or network behavior. There is no security issue here.
Lower-priorityjson_db: add some type hints and assertsby SomberNight · 1119cb9a · Dec 1, 2025 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · SomberNight
json_db: add some type hints and asserts
- fix some incorrect type hints - add many new type hints - add asserts re types
no functional changes intended
60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100
This commit only adds Python type hints and runtime assertions to Electrum's JSON database helper code. The author explicitly states 'no functional changes intended'. There is no change to how the wallet stores, encrypts, or validates data, and no security vulnerability is introduced or fixed.
Lower-prioritylnworker: allow overwriting amount of sent payment infoby f321x · df612fa0 · Dec 1, 2025 · 1 fileMessage 73 · AdequateLow 29Details
Commit message · f321x
lnworker: allow overwriting amount of sent payment info
Allows replacing a saved `PaymentInfo` of `SENT` direction if the old one is not yet paid. This allows the user to retry paying a 0 amount invoice with different amount if the previous attempt failed.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 29/100
This commit loosens the rules for saving Lightning payment details when a user is retrying a failed or unpaid outgoing payment. It allows the wallet to overwrite the payment amount and status for a previously saved sent payment, specifically so users can retry paying an invoice that has no fixed amount (a '0 amount invoice') with a different amount. There is no direct evidence in the commit that this fixes a security vulnerability; it appears to be a usability improvement for retrying payments.
AI review queuedlnworker: differentiate PaymentInfo by directionby f321x · 923d48f9 · Dec 1, 2025 · 12 filesMessage 68 · AdequateLow 36Details
Commit message · f321x
lnworker: differentiate PaymentInfo by direction
Allows storing two different payment info of the same payment hash by including the direction into the db key. We create and store PaymentInfo for sending attempts and for requests (receiving), if we try to pay ourself (e.g. through a channel rebalance) the checks in `save_payment_info` would prevent this and throw an exception. By storing the PaymentInfos of outgoing and incoming payments separately in the db this collision is avoided and it makes it easier to reason about which PaymentInfo belongs where.
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 · Low 36/100
This commit changes how Electrum stores Lightning payment records. Previously, outgoing and incoming payments sharing the same payment hash (for example, when rebalancing your own channels) could collide in the database and cause errors. The fix adds a direction flag to the database key so both sides can be stored separately. It is a bug-fix and robustness improvement, not an obvious security vulnerability, though the original collision could have caused crashes or inconsistent state in self-payment scenarios.
Lower-prioritycommands: version_info: include openssl versionby SomberNight · 828fc569 · Nov 30, 2025 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · SomberNight
commands: version_info: include openssl version
45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100
This commit simply adds the installed OpenSSL version string to Electrum's existing `version_info` diagnostic command. It is a minor information-gathering improvement with no apparent security relevance.
Lower-prioritylnsweep: factor out "maybe_reveal_preimage_for_htlc"by SomberNight · ef8fd03e · Nov 28, 2025 · 1 fileMessage 40 · ThinInformational 15Details
Commit message · SomberNight
lnsweep: factor out "maybe_reveal_preimage_for_htlc"
no functional changes
40/100 · ThinMessage clarity
✓ Specific, descriptive subject! No meaningful explanatory body
AI analysis · Informational 15/100
This commit is a simple code cleanup in Electrum's Lightning Network sweep logic. It moves a repeated block of code into a new helper function without changing what the code actually does. There is no security fix or behavior change visible in the diff.
Lower-priorityqt: update tabs on exit of SettingsDialogby f321x · c575abc8 · Nov 28, 2025 · 1 fileMessage 68 · AdequateInformational 15Details
Commit message · f321x
qt: update tabs on exit of SettingsDialog
Update the tabs after the SettingsDialog gets closed, some values might have to be updated according to the new configuration.
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100
This is a minor user-interface fix. After closing the Settings dialog, Electrum's main window now refreshes its tabs so that displayed information (for example, whether a Lightning payment can be sent) reflects any changed settings. There is no security issue here.
Lower-prioritylnworker: use config lightning fee for estimateby f321x · af4dc24d · Nov 28, 2025 · 3 filesMessage 80 · StrongInformational 20Details
Commit message · f321x
lnworker: use config lightning fee for estimate
I was unable to do a "Max" amount submarine swap because the `fee_estimate` method used by `LNWallet.num_sats_can_send()` uses a hardcoded `fee_proportional_millionths` to estimate the fee for the lightning payment. When the actual fee determined later is higher than the estimated fee the payment fails as the channel is unable to add the htlc sum including the real fees as the amount exceeds the balance of the channel. Using the fees the maximum fees user has configured and estimate the potential fee as inverse of PaymentFeeBudget is more reliable/conservative as we definitely aren't going to pay more fees than this amount.
80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 20/100
This commit fixes a bug in Electrum's Lightning wallet where the app guessed Lightning routing fees using hardcoded values. The old guess could be too low, causing 'Max' amount submarine swaps and similar payments to fail because the real fee later exceeded the reserved amount. The patch now uses the user's own configured maximum fee settings to make a more conservative estimate, so the wallet reserves enough for fees upfront.
factorize code that is used in both SwapDialog and Submarine payments
40/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides an explanatory body! Too few words to establish purpose
AI analysis · Informational 15/100
This commit is a routine code cleanup in Electrum's Qt graphical user interface. It creates a reusable 'SwapProvidersButton' widget so that two different parts of the app (the swap dialog and submarine/on-chain payment flow) share the same code for showing and selecting swap providers. There is no security-relevant change visible in the diff.
Lower-priorityswaps dialog: in callbacks, update either send or receive field, depending on which one followsby ThomasV · 8bec3eaf · Nov 28, 2025 · 1 fileMessage 65 · AdequateInformational 15Details
Commit message · ThomasV
swaps dialog: in callbacks, update either send or receive field, depending on which one follows
before this, the content of the non-following field could be modified by callbacks
65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100
This commit fixes a UI behavior bug in Electrum's swap dialog. Previously, when certain events happened (like fee updates), the dialog would recalculate both the 'send' and 'receive' fields, which could overwrite a value the user had just typed. Now it only updates the field that is supposed to automatically follow from the other, leaving the user's manual input alone. There is no direct evidence this is a security vulnerability.
qt: SettingsDialog: update ln fee config on slider moved
When moving the lightning fee slider in the SettingsDialog by clicking on the range instead of pulling the slider the new fee value wouldn't get stored in the config as the sliderRelased signal is only emitted when the slider is pulled. This change updates it on valueChanged.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 19/100
This commit fixes a small user-interface bug in Electrum's Qt settings window. When users adjusted the Lightning Network fee slider by clicking on the slider track (rather than dragging the handle), the chosen fee wasn't saved because the app only saved it when the slider was released after dragging. The fix saves the fee whenever the slider value changes. It is a usability/configuration bug, not a security vulnerability.
Adds a simple forwarding test where the receiver fails a malformed onion with `update_fail_malformed_htlc`.
65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 12/100
This commit only adds a new automated test to Electrum's Lightning networking code. It simulates a multi-hop payment where the final receiver intentionally reports a malformed onion packet. There is no change to production code, no bug fix, and no security patch.
Lower-prioritylnpeer: use INVALID_ONION_VERSION for unparsable onionsby f321x · 16ed7e66 · Nov 27, 2025 · 2 filesMessage 73 · AdequateLow 29Details
Commit message · f321x
lnpeer: use INVALID_ONION_VERSION for unparsable onions
Use the `OnionFailureCode.INVALID_ONION_VERSION` (BADONION | PERM | 4) code when sending back `update_fail_malformed_htlc` as just sending a plain `BADONION` is not explicitly mentioned as correct in the spec.
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 29/100
This commit tightens how Electrum's Lightning code reports a failed onion packet. Previously it used a generic 'BADONION' flag; now it uses the more specific 'INVALID_ONION_VERSION' code when telling the peer the onion could not be parsed. The change is mainly about following the Lightning specification more precisely and is unlikely to be a security fix for an exploitable bug.
✓ Descriptive subject✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100
This commit only adds a new automated test for an existing feature called 'dont_expire_htlcs' in Electrum's Lightning code. It does not change any production code, so it cannot introduce a security vulnerability or fix one directly. It is purely a test-file addition.
Adds test for the dont_settle_htlcs functionality of lnworker used by Just-In-Time channels.
60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 12/100
This commit only adds a new automated test to Electrum's Lightning code. It does not change any production code, so it cannot by itself introduce a security vulnerability or fix one. The test checks that a special internal flag called 'dont_settle_htlcs' correctly prevents Lightning payments from being finalized until the flag is removed, which is used for Just-In-Time channels.
Splits `LNWallet.dont_settle_htlcs` into `LNWallet.dont_settle_htlcs` and `LNWallet.dont_expire_htlcs`.
Registering a payment hash in dont_settle_htlcs will prevent it from getting fulfilled if we have the preimage stored. The preimage will not be released before the the payment hash gets removed from dont_settle_htlcs. Htlcs can still get expired as usual or failed if no preimage is known. This is only used by Just-in-time channel openings.
Registering a payment hash in dont_expire_htlcs allows to overwrite the minimum final cltv delta value after which htlcs would usually get expired. This allows to delay expiry of htlcs or, if the value in the dont_settle_htlcs dict is None, completely prevent expiry and let the htlc get expired onchain.
Splitting this up in two different dicts makes it more explicit and easier to reason about what they are actually doing.
Please enter the commit message for your changes. Lines starting
This commit refactors how Electrum handles special Lightning payment hashes used for 'hold invoices' and 'just-in-time channel openings.' It splits one internal control list into two separate lists: one that prevents automatic settlement (releasing the secret that completes a payment) and one that prevents automatic expiry of pending payments. The change is described by the author as making the code easier to reason about and safer, but it also alters the timing rules for when pending payments can be cancelled. There is no direct evidence in the commit that this fixes a known exploitable bug, but the change touches security-sensitive payment logic.
Adds test_payment_bundle_with_hold_invoice to simulate the use of a payment bundle in which one invoice of the bundle needs to trigger a hold invoice callback (similar to submarine swaps). Also modifies the test helper _test_simple_payment() to compare the results of all payment attempts instead of just returning after the first (of multiple) payments raises its result causing the test to miss if all payments were successful or not.
This commit only adds and improves automated tests for Electrum's Lightning payment logic. It does not change any production wallet or network code, so it cannot introduce a security vulnerability in the software users run. The test changes make the test suite better at catching failures when multiple bundled payments are attempted.
AI review queuedlnpeer: report htlc_switch exceptions to crash reporterby f321x · 95729a08 · Nov 27, 2025 · 1 fileMessage 73 · AdequateInformational 18Details
Commit message · f321x
lnpeer: report htlc_switch exceptions to crash reporter
It seems useful to report exceptions happening in the htlc_switch to the crash reporter as it shouldn't raise exceptions in theory and this could help catch subtle bugs.
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 18/100
This commit adds automatic crash reporting for a specific internal Lightning payment-routing function. When that function hits an unexpected error, the app now sends a redacted copy of the error to Electrum's crash reporter before re-raising it. It is a diagnostic/logging improvement, not a fix for a known security flaw, and it does not change how errors are handled.
Benchmark how long a call to _run_htlc_switch_iteration takes with 10 trampoline mpp sets of 1 htlc each.
65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100
This commit only adds a new automated test that measures how fast a specific internal Lightning Network routine runs. It does not change any production wallet code, user-facing behavior, or network protocol handling. There is no security fix or vulnerability introduced here.
Add test `test_hold_invoice_set_doesnt_get_expired` to test_lnpeer to ensure a mpp set on which a hold invoice callback doesn't get expired automatically if the cltv_abs falls below MIN_FINAL_CLTV_DELTA_ACCEPTED as these sets should only get failed if the htlcs are safe to fail by the target of the hold invoice callback (e.g. swap got refunded successfully).
This commit only adds a new automated test to Electrum's Lightning code. It does not change any production wallet or server code, so it cannot by itself introduce a security vulnerability or fix one in shipped software. The test verifies that 'hold invoices' used in features like submarine swaps are not prematurely expired while a callback is still active.
Lower-prioritytests: test_lnpeer: test compare trampoline onionsby f321x · bb828097 · Nov 27, 2025 · 1 fileMessage 83 · StrongInformational 12Details
Commit message · f321x
tests: test_lnpeer: test compare trampoline onions
Adds test_forwarder_fails_for_inconsistent_trampoline_onions which checks that a forwarder compares the trampoline onions of a mpp set and fails the set if the onions are not similar. In the test alice sends a mpp through bob with 2 htlcs, in one trampoline onion amt_to_forward is off by 1 msat so bob fails the htlc set instead of initiating the trampoline forwarding.
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 12/100
This commit only adds a new automated test to Electrum's Lightning networking code. It does not change any production behavior. The test verifies that a forwarding node (Bob) rejects a multi-part trampoline payment when the hidden 'trampoline onions' inside the payment parts disagree on the amount. This is a defensive correctness check, not a fix or vulnerability patch.
Add sanity check that bob is not forwarding more sats to carol if than he receives from alice. (he only forwards once and doesn't try to forward multiple times). This should get caught by asserts in lnworker/lnpeer, nevertheless it seems to make sense to just add this test to prevent regressions of this kind.
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
AI analysis · Informational 15/100
This commit only adds a new automated test to Electrum's Lightning networking code. It does not change any production code, fix a bug, or introduce a vulnerability. The test checks that in a specific multi-part trampoline payment scenario, an intermediate node (Bob) does not forward more money to the next hop than he received from the previous hop. It is a regression test to help catch a potential bug in the future, not a patch for an existing security issue.
1. Alice sends two HTLCs to Bob, not reaching total_msat, and eventually they MPP_TIMEOUT 2. Bob fails both HTLCs 3. Alice then retries and sends HTLCs again to Bob, for the same RHASH, this time reaching total_msat, and the payment succeeds
Test that the sets are properly cleaned up after MPP_TIMEOUT and the sender gets a second chance to pay the same invoice.
This commit only adds a new automated test for the Electrum Lightning wallet. It checks that when a multi-part payment times out because not enough money arrived, the leftover payment records are cleaned up so the sender can try paying the same invoice again. There is no change to production code, so users are not directly affected by this commit.