Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

Add new methods to Dimensions class for more granular tx size calculations:

  • times() to multiply dimensions by a scalar
  • getInputWeight() and getInputVSize() to get input-specific sizes
  • getOutputWeight() and getOutputVSize() to get output-specific sizes

These methods enable more precise fee estimation and transaction sizing.

BTC-2908

Add new methods to Dimensions class for more granular tx size calculations:
- `times()` to multiply dimensions by a scalar
- `getInputWeight()` and `getInputVSize()` to get input-specific sizes
- `getOutputWeight()` and `getOutputVSize()` to get output-specific sizes

These methods enable more precise fee estimation and transaction sizing.

Issue: BTC-2908

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review January 12, 2026 14:25
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner January 12, 2026 14:25
@OttoAllmendinger OttoAllmendinger merged commit ea3caff into master Jan 12, 2026
1 check passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2908.update-dims branch January 12, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants