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 commit fixes a bug in the Lightning Dev Kit's handling of channel monitor updates that are refused because the channel's funding transaction was already spent on-chain. Previously, such refused updates were persisted as a full monitor…
Durability ordering bug: later MonitorEvent::Completed could imply earlier refused update was persistedRefused monitor update may carry forwarded HTLC preimage, creating risk of inconsistent state across restartAsynchronous persistence tracking gap for refused updates
This commit only adds and modifies test code in rust-lightning. It expands test coverage for a specific edge case in Lightning channel splicing: when a splice transaction gets confirmed before both peers have finished exchanging signatures…
This is a documentation-only edit. It corrects a misleading comment in the code that wrongly claimed all fee estimates returned to LDK are forced to be at least 253 satoshis per 1000 weight units. The new comment clarifies that this minimu…
This change fixes a bug in Lightning Dev Kit's splicing logic. During a splice, one side can broadcast the new funding transaction as soon as it has the other side's signatures. Previously, if that transaction confirmed on-chain before the…
State-machine inconsistency in channel funding lifecycleMissing chain-source watch for in-flight splice funding transactionPotential failure to send splice_locked after splice confirms during signature exchange
This change fixes how Lightning nodes calculate the financial risk from tiny ('dust') HTLCs when the current on-chain fee rate is higher than the node's own local fee estimate. Previously, the code only considered a buffered fee rate when …
Incorrect fee exposure accounting for dust HTLCsPotential to accept HTLCs whose commitment/HTLC-success fees exceed their value under current feerateEconomic griefing / forced-channel-closure cost manipulation
This is a one-line code cleanup in a test file. It replaces a cloned array literal with a slice reference to silence a Rust compiler lint. There is no change to production code, no security fix, and no functional behavior change.
This is a one-line change in a test file to satisfy a Rust linter warning. It replaces a needless clone of a funding transaction with a reference-based slice construction. There is no functional change, no user-facing behavior change, and …
This commit is a test-only fix for a broken continuous integration (CI) build. It updates a test mock to match a new function signature and rewrites an existing test to use three nodes instead of two so the test scenario remains valid unde…
This change fixes a Lightning channel bug where a malicious peer could renegotiate the closing transaction fee while the local node was still waiting for its own signer to produce the final signature. If allowed, the local node might combi…
State-machine guard expansion to prevent fee renegotiation while a closing signature is pendingRisk of combining mismatched signatures across different closing feesRegression test demonstrates malicious peer renegotiation attempt and expected warning rejection
This change fixes a wallet bug in rust-lightning where a UTXO could be selected for a Lightning funding transaction, then rejected because its previous transaction was too large to fit in a Lightning peer message. Previously, that rejectio…
API change to CoinSelectionSource::select_confirmed_utxos adding max_input_prevtx_serialized_lenWalletSync filters UTXOs by prevtx serialized length before selectionFundingBuilder enforces Lightning tx_add_input message-size limit at selection time
This commit hardens LDK's BOLT 12 payment logic so it refuses to pay invoices containing very large unknown record types (4 billion and up). These records are legal under the Lightning spec, but LDK doesn't understand them, so the change t…
Defensive refusal to pay invoices with unknown high-numbered TLV recordsReuses existing UnknownRequiredFeatures failure path instead of adding a new oneAdds explicit checks before payment state insertion and route construction
This commit fixes a backward-compatibility bug in LDK's BOLT 12 invoice parser. A previous change had capped the range of 'experimental' TLV record types at 4 billion, but the Lightning spec imposes no upper bound. As a result, invoices cr…
Backward-compatibility regression in deserialization of persisted channel monitorsDenial-of-service via unreadable monitor blocking all channel monitoringSpec compliance fix: TLV record types have no upper bound
This change fixes a security issue where a signed text message could be crafted so that its prefixed form looks exactly like a Lightning 'node_announcement' gossip message. Because both use the same double-SHA256 hash and the same signing …
Signature replay / message confusion between signed messages and gossip announcementsForged `node_announcement` signatures via chosen-prefix message constructionNew validation rejects prefixed messages that deserialize as `UnsignedNodeAnnouncement`
This change fixes a corner case in how the Lightning node tries to claim multiple pending HTLCs (small Bitcoin payments locked in a channel) when the wallet cannot fund a single large batch transaction. Previously, if the multi-HTLC batch …
Funds-recovery robustness improvement: prevents premature abandonment of a single unbatched HTLCChange in error-handling arithmetic from checked_sub/saturating_sub with max(1)New unit tests covering both failed and successful singleton HTLC funding paths
This change prevents a Lightning node from accidentally overwriting an archived copy of a channel's security monitor with a brand-new one that happens to use the same identifier. In the old code, if a new channel reused the same identifier…
Data-loss prevention: stops archived ChannelMonitor from being overwritten by a later channel with the same keySafety guard added to both sync and async persistence pathsPersistence refusal surfaces as InProgress/UnrecoverableError rather than silent overwrite
This change fixes a place in the Lightning payment routing code where adding up fees could overflow the maximum number a computer can store in a 64-bit integer. Previously, the code assumed this could never happen and would crash (panic) i…
Integer overflow in fee computationPreviously unreachable!() panic path reachableMPP path merge could trigger overflow
This commit fixes a bug where a Lightning node could get stuck after restarting. If the node crashed or restarted while it was still saving the initial channel monitor to disk, and that save later finished in another process, the restarted…
Fixes a state-machine stall on node reload that could leave channels non-functionalRemoves an overstrict assertion that would panic on a legitimate post-reload stateAdds explicit detection of monitor persistence completed in a prior process
This change only updates documentation and code comments in the Lightning Dev Kit library. It clarifies that a particular key-derivation setting is fixed when a channel is first opened and is not changed by splicing. No code behavior was a…
This commit only changes documentation comments in two source files. It corrects the wording of how certain public keys are derived in the Lightning protocol and adds details about which witness script a signer must use when creating justi…
Documentation-only changeClarifies key derivation semantics for Lightning commitment transactionsClarifies justice transaction witness script requirements for signers
This change only adds documentation comments to a Rust struct. It does not modify any executable code, so it cannot by itself introduce or fix a security vulnerability. The new text warns developers that using TokioSpawner incorrectly can …
Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.
Lower-priorityMerge PR 'reject open_channel with both anchors and zero fee set' (#4976)by Matt Corallo · c41dd894 · Sep 9, 2026 · 2 filesMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo
Merge PR 'reject open_channel with both anchors and zero fee set' (#4976)
from reject-invalid-open-channel into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4976 Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
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
merge-commit duplicate discount
Lower-priorityMerge PR 'Pin honggfuzz on a stable-toolchain fuzz CI job' (#4978)by Matt Corallo · 512a7269 · Sep 8, 2026 · 6 filesMessage 91 · StrongTriage 0Details
Commit message · Matt Corallo
Merge PR 'Pin honggfuzz on a stable-toolchain fuzz CI job' (#4978)
from bot/4968-fuzz-is-failing-again-a9f6b5 into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4978 Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
fuzzing or regression evidencemerge-commit duplicate discount
Lower-priorityFix test callsites left broken by the dummy-hop mergeby auto-pr-bot · 828336d4 · Sep 8, 2026 · 3 filesMessage 100 · StrongTriage 5Details
Commit message · auto-pr-bot
Fix test callsites left broken by the dummy-hop merge
@matt asked:
> Failing to build this time. > > ``` > error: cannot install package `honggfuzz 0.5.62`, it requires rustc 1.85 or newer, while the currently active rustc version is 1.75.0 > `honggfuzz 0.5.61` supports rustc 1.70 > ``` > > @auto-pr-bot please fix.
The dummy-hop merge (ac8b6b99c, #4501) resolved textually but not semantically. While that branch was open, main gained the `Bolt12RefundContext::invoice_request` field and two more callers of `claim_bolt12_payment`, and the branch meanwhile added refund contexts without that field and dropped the no-fee `claim_bolt12_payment` wrapper in favour of the fee-aware one. The result is that `lightning`'s test build does not compile at that merge, so nothing in the crate can be tested.
Fill in the missing field and pass the extra-fee expectation at the two new `claim_bolt12_payment` callsites, which pay a single-hop offer over the same realistic dummy hops the sibling offer tests already charge 50 msat for.
`pay_for_bolt12_invoice_partial_amount{,_multi_payer}` are in the same position: they predate dummy hops charging anything, so their expected HTLC and claimable amounts are now short by the dummy-hop fees. Fold those fees into the expected amounts, as the surrounding tests do.
This is unrelated to the rest of the branch; it is here only so that every commit builds and tests on its own.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
✓ Specific, 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
Why it was queued
fuzzing or regression evidence
AI review queuedAdd `Wallet::release_utxos` to free UTXOs from abandoned transactionsby elnosh · 52ab13fd · Sep 8, 2026 · 3 filesMessage 73 · AdequateModerate 58Details
Commit message · elnosh
Add `Wallet::release_utxos` to free UTXOs from abandoned transactions
`Wallet` reserves every UTXO it selects and, for selections made without a `ClaimId` such as splice contributions, refuses to offer them to any later selection. Since a reservation is never dropped, inputs from a splice that failed to negotiate stayed reserved for the life of the process, and repeated failures could leave no UTXOs available for anchor or HTLC claims.
Add `release_utxos` to `Wallet` and `WalletSync` so users can free the inputs reported in `Event::DiscardFunding`.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Moderate 58/100
This commit fixes a design flaw in LDK's built-in wallet helper where coins selected for a splice-in (or other unclaimed funding) were permanently reserved in memory if the transaction was abandoned. Over repeated failed splices, all spendable coins could become locked, preventing the node from paying on-chain fees for time-critical Lightning transactions such as HTLC or anchor claims. The patch adds a new release_utxos method that callers must invoke using the inputs reported by Event::DiscardFunding.
Security candidateDrop the honggfuzz version pin from the CI fuzz jobby auto-pr-bot · 4a1635ef · Sep 8, 2026 · 1 fileMessage 100 · StrongInformational 15Details
Commit message · auto-pr-bot
Drop the honggfuzz version pin from the CI fuzz job
The pin only ever existed because the job ran on our MSRV toolchain while honggfuzz's own MSRV had moved past it, so each honggfuzz release broke the job until someone picked an older version to install. With the job on stable there is nothing left for the pin to guard: `cargo install honggfuzz` and the `honggfuzz` 0.5 dependency the fuzz targets link against both resolve to the current release, which is what we want to be fuzzing with anyway.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
✓ Specific, 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
Why it was queued
access controlfuzzing or regression evidence
AI analysis · Informational 15/100
This commit removes a fixed-version pin for the honggfuzz fuzzing tool in a continuous-integration script. The project now uses the current release of honggfuzz instead of an older pinned version. There is no change to the actual Lightning protocol code, wallet logic, or any code that end users run in production.
AI review queuedRun the CI fuzz job on the stable toolchainby auto-pr-bot · 21c4ed2b · Sep 8, 2026 · 2 filesMessage 86 · StrongInformational 15Details
Commit message · auto-pr-bot
Run the CI fuzz job on the stable toolchain
@matt asked:
> Failing to build this time. > > ``` > error: cannot install package `honggfuzz 0.5.62`, it requires rustc 1.85 or newer, while the currently active rustc version is 1.75.0 > `honggfuzz 0.5.61` supports rustc 1.70 > ``` > > @auto-pr-bot please fix.
The `fuzz` job doesn't compile anything we ship, it builds the fuzz targets against `honggfuzz` and then runs them. That the targets build on our MSRV is checked by the `fuzz_sanity` job, which compiles both fuzz crates with 1.75 on every push, so there is nothing the `fuzz` job adds by using the MSRV toolchain itself.
What it does add is a dependency on `honggfuzz` still supporting our MSRV. It doesn't: 0.5.62 requires rustc 1.85, so the job can only install progressively older releases of a tool we merely need to run, and each `honggfuzz` MSRV bump breaks the job until someone moves the pin.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
fuzzing or regression evidencesecond-pass: broader security terminology
AI analysis · Informational 15/100
This commit changes the Rust toolchain used in the continuous integration (CI) fuzzing job from a fixed older version (1.75) to the latest stable release. It is purely a build/test infrastructure change to fix a dependency compatibility issue with the honggfuzz fuzzing tool. It does not change any shipped code, user-facing behavior, or security-sensitive logic.
Lower-priorityMerge PR 'Fix DummyTlvs helper visibility for the dummy-tail constructor' (#4965)by Matt Corallo · bee704f1 · Sep 8, 2026 · 1 fileMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo
Merge PR 'Fix DummyTlvs helper visibility for the dummy-tail constructor' (#4965)
from bot/4501-introduce-realistic-constraints-878b64 into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4965 Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
> @auto-pr-bot this and the remining fns in this impl block shouldn't be > crate-public.
@matt asked on the diff:
> @auto-pr-bot this should be public.
`BlindedPaymentPath::new_with_dummy_hops` is public, but the `DummyTlvs` it takes could only be built by hand, leaving external callers to rederive the per-hop constraint chaining themselves. Expose the constructor that does it, and document what the returned upstream constraints are for.
The entropy source is only unused under `cfg(test)`, so name the parameter rather than leaving an underscore-prefixed one in the public signature.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
Why it was queued
entropy or randomnesssigning boundary
AI analysis · Informational 19/100
This commit makes a previously internal helper function public so that outside developers can build dummy-hop tails for blinded payment paths without recreating the logic themselves. It is an API usability change, not a fix for a known security bug. The function's behavior is unchanged; only its visibility and documentation were updated.
> @auto-pr-bot this and the remining fns in this impl block shouldn't be > crate-public.
@matt asked on the diff:
> @auto-pr-bot this should be public.
`derive_payment_constraints`, `default_relay` and `random_relay` are only ever called from within this module, either from the dummy-tail constructor or from the test-only `Default` impl. Crate visibility advertises them as a shared helper API they are not, so drop it.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Lower-priorityMerge PR 'Address review of the holder commit sig checks move' (#4964)by Matt Corallo · 3c605e99 · Sep 8, 2026 · 5 filesMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo
Merge PR 'Address review of the holder commit sig checks move' (#4964)
from bot/4885-move-holder-commit-sig-checks-to-cd7c04 into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4964 Reviewed-by: tankyleo <tankyleo@noreply.git.rust-bitcoin.org> Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Fail commitment sig verification without counterparty params
@matt asked on the diff:
> @auto-pr-bot this example is adding nothing to public docs, please > remove it.
@matt asked on the diff:
> Since this is now the "primary" error message we send to peers, > @auto-pr-bot please change this to read "Received commitment sigs failed > verification". Same for the version in `validate_commitment_signed`.
@matt asked on the diff:
> @auto-pr-bot just for extra belt-and-suspenders, can you add > `debug_assert!(false);`, `log_error(...)` and a failure return if the > `channel_transaction_parameters` is missing `counterparty_parameters`? > Same for the similar code in `validate_commitment_signed`.
Verifying the counterparty's signatures on a holder commitment requires their funding pubkey and selected contest delay, so with `counterparty_parameters` unset we'd panic somewhere down in building the commitment transaction. That should never happen, as we only accept `commitment_signed` (initial or otherwise) once the counterparty's parameters are known, but rather than risk a panic on a peer-driven path we now log and close the channel. As on the other failure paths here, we clear the funding outpoint for inbound channels first, so that we don't broadcast a commitment for funding the counterparty may never publish.
✓ Specific, 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
Why it was queued
signing boundarydefensive validation
AI analysis · Moderate 54/100
This change adds a safety check in a Bitcoin Lightning Network library (LDK). Previously, if the software tried to verify a peer's commitment signature before it had learned the peer's channel parameters, it could crash with a panic. Now it logs an error and closes the channel gracefully instead. The commit message says this situation should never happen in normal operation, so this is defensive hardening against a potential peer-triggered crash.
> @auto-pr-bot this example is adding nothing to public docs, please > remove it.
@matt asked on the diff:
> Since this is now the "primary" error message we send to peers, > @auto-pr-bot please change this to read "Received commitment sigs failed > verification". Same for the version in `validate_commitment_signed`.
@matt asked on the diff:
> @auto-pr-bot just for extra belt-and-suspenders, can you add > `debug_assert!(false);`, `log_error(...)` and a failure return if the > `channel_transaction_parameters` is missing `counterparty_parameters`? > Same for the similar code in `validate_commitment_signed`.
Now that no signature checking remains in channel, this error is what we send our peer whenever the holder commitment they sent us fails to validate - because their signatures don't verify, but also, e.g., because the commitment has no outputs at all. Say so, rather than the vaguer "Failed to validate our commitment", which reads as though the fault were on our side.
✓ 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✓ Names security-relevant behavior explicitly
Why it was queued
signing boundarydefensive validation
AI analysis · Informational 15/100
This commit only changes the wording of an error message sent to peers when a commitment transaction fails validation. It replaces the vague phrase 'Failed to validate our commitment' with the clearer 'Received commitment failed validation'. No code logic, signature checks, or security behavior is altered. It is a documentation/clarity improvement, not a security fix.
> @auto-pr-bot this example is adding nothing to public docs, please > remove it.
@matt asked on the diff:
> Since this is now the "primary" error message we send to peers, > @auto-pr-bot please change this to read "Received commitment sigs failed > verification". Same for the version in `validate_commitment_signed`.
@matt asked on the diff:
> @auto-pr-bot just for extra belt-and-suspenders, can you add > `debug_assert!(false);`, `log_error(...)` and a failure return if the > `channel_transaction_parameters` is missing `counterparty_parameters`? > Same for the similar code in `validate_commitment_signed`.
The example only demonstrated encrypting and decrypting a byte vec, which the type's method docs already describe, while requiring a throwaway `Logger` implementation to construct a `KeysManager`. It added nothing for readers of the public docs, and the roundtrip it exercised is already covered by `test_peer_storage_encryption_decryption`.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
defensive validation
AI review queuedMerge PR 'Move holder commit sig checks to `InMemorySigner`' (#4885)by Matt Corallo · 83f5ba55 · Sep 7, 2026 · 24 filesMessage 81 · StrongModerate 61Details
Commit message · Matt Corallo
Merge PR 'Move holder commit sig checks to `InMemorySigner`' (#4885)
from 2026-08-signer-validates-commits into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4885 Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
This commit moves the checks that validate a counterparty's signatures on the holder's commitment and HTLC transactions out of the general channel code and into the signer module (InMemorySigner). Previously, these signature checks were done directly inside the channel state machine. Now, the signer itself is responsible for verifying those signatures. This is a security-relevant refactor: it makes the signer the authoritative place for validating signatures, which is important for users running LDK with external or hardware signers. The commit also adds tests that corrupt signatures to ensure invalid signatures are rejected. There is no direct evidence in the commit message or diff that this fixes a known exploitable vulnerability, but it strengthens the architecture so that custom signers cannot accidentally skip these checks.
Lower-priorityMerge PR 'Fix docs on the connection constructors' duplicate descriptor case' (#4959)by Matt Corallo · 0345e694 · Sep 4, 2026 · 1 fileMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo
Merge PR 'Fix docs on the connection constructors' duplicate descriptor case' (#4959)
from fix-conn-docs into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4959 Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
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
merge-commit duplicate discount
Lower-priorityMerge PR 'Don't emit `SpliceNegotiationFailed` when `funding_contributed` returns an error' (#4955)by Matt Corallo · 1a9b1a04 · Sep 3, 2026 · 7 filesMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo
Merge PR 'Don't emit `SpliceNegotiationFailed` when `funding_contributed` returns an error' (#4955)
from 2026-09-splice-sync-err-no-event into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4955 Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Security candidateMerge PR 'Drop stale splice signature on disconnect' (#4954)by Matt Corallo · c9a77251 · Sep 2, 2026 · 2 filesMessage 86 · StrongLow 42Details
Commit message · Matt Corallo
Merge PR 'Drop stale splice signature on disconnect' (#4954)
from drop-stale-splice-sig-on-disconnect into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4954 Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
86/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
Why it was queued
signing boundarymerge-commit duplicate discount
AI analysis · Low 42/100
This change fixes a Lightning channel splicing bug: when two peers temporarily disconnect during a splice, any half-finished signature the other side already sent is now discarded. Before the fix, that stale signature could be reused after reconnecting, which might let a peer apply an old splice state or confuse the channel re-establishment logic. The patch is small and adds a test showing the signature is dropped and no monitor update occurs at that point.
Lower-priorityMerge PR 'bolt12: include InvoiceRequestFields in Bolt12RefundContext' (#4895)by Matt Corallo · 4e451a9c · Sep 2, 2026 · 11 filesMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo
Merge PR 'bolt12: include InvoiceRequestFields in Bolt12RefundContext' (#4895)
from refund-invoice-request-fields into main
Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4895 Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
An initial splice `commitment_signed` can be buffered while waiting for the user to provide funding signatures. While this was dropped after a node restart as it's only intended to be live & in-memory state, it was not dropped after a disconnection. This could lead to a duplicate message being received after the negotiation has already completed, leading to a force close.
This was discovered by the `chanmon_consistency` fuzzer via:
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
Why it was queued
signing boundaryfuzzing or regression evidence
AI analysis · Moderate 58/100
This fix prevents a Lightning channel from being accidentally force-closed. During a splice (a way to resize a payment channel), one side's initial signature could be kept in memory after the peers disconnected. If the peers later reconnected and finished the splice, that old buffered signature could be processed again, triggering a safety shutdown (force close) of the channel. The patch now clears that buffered signature when the connection drops, just like it was already cleared on restart.
Drop comments restating the retired outbound payment TLV
@matt asked on the diff:
> The point of `,retired` is that its self-documenting, no need for a > comment. @auto-pr-bot there's a few of these in this PR, please remove.
The `retired` field type already says the type number is reserved for something a previous version wrote and no longer written, and the commit which retired it records why. Repeating that at each use adds nothing a reader cannot get from the entry itself.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>