AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 23 Bitcoin

Remove NegotiatedTxInput::weight

Public commit record

What the developer wrote

Authored by Jeffrey Czyz

50/100 · Thin
Remove NegotiatedTxInput::weight

The weight is no longer needed once a ConstructedTransaction is created,
so it doesn't need to be persisted.
✓ Descriptive subject✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit removes a stored 'weight' field from a transaction-input data structure and instead calculates the weight on the fly when building a transaction. It is a code-cleanup and data-format simplification. There is no direct evidence in the commit that this fixes a security vulnerability, but any change to fee/weight calculations in Bitcoin-related code deserves a careful look because mistakes there can affect transaction validity or fees.

Recommended action

Review the new weight computation for arithmetic correctness and overflow handling. Verify that `satisfaction_weight()` returns the same witness-weight estimate previously captured in `NegotiatedTxInput::weight`, and that dropping the persisted field does not break backward compatibility or downgrade paths. Treat as a normal refactor unless additional context shows a bug was fixed.

Security signals we found

01

Change to Bitcoin transaction weight/fee calculation path

02

Serialization format change for a persisted Lightning transaction input structure

03

Removal of a cached weight value in favor of on-the-fly computation

04

No explicit security framing, CVE, or advisory referenced in commit

Risk score

Why this scored 23/100

Our methodology →
Potential impact 5/30
Exploitability 3/25
Stealth signal 2/15
Affected reach 4/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.