Skip to content

feat: use new Weight type throughout the BDK codebase, instead of usize for weight units #1466

Closed
@oleonardolima

Description

@oleonardolima

Describe the enhancement

In the new release of rust-bitcoin 0.32.0 the new Weight type has been introduced through bitcoin-units 0.1.1, it's not being explicitly used in the PR #1448, but it should be instead of using .to_wu() as usize conversions.

Use case

Use the proper Weight type/API, instead of the current usize, for referring to weight units.

Additional context

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions