• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitcoindevkit / bdk / 8521947084
79%

Build:
DEFAULT BRANCH: master
Ran 02 Apr 2024 11:25AM UTC
Jobs 1
Files 40
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Apr 2024 11:21AM UTC coverage: 84.429% (-0.004%) from 84.433%
8521947084

push

github

evanlinjin
Merge bitcoindevkit/bdk#1345: fix: remove deprecated max_satisfaction_weight

<a class=hub.com/bitcoindevkit/bdk/commit/798ed8ced25156049126645435127a22245e916f">798ed8ced fix: remove deprecated `max_satisfaction_weight (Jose Storopoli)

Pull request description:

  ### Description
  Continuation of #1115.
  Closes #1036.

  * Change deprecated `max_satisfaction_weight` to `max_weight_to_satisfy`
  * Remove `#[allow(deprecated)]` flags

  ### Notes to the reviewers

  I've changed all `max_satisfaction_weight()` to `max_weight_to_satisfy()` in `Wallet.get_available_utxo()` and `Wallet.build_fee_bump()`. Checking the docs on the `miniscript` crate for `max_weight_to_satisfy` has the following note:

  We are testing if the underlying descriptor `is.segwit()` or `.is_taproot`,
  then adding 4WU if true or leaving as it is otherwise.

  Another thing, we are not testing in BDK tests for legacy (pre-segwit) descriptors.
  Should I also add them to this PR?

  ### Changelog notice
  ### Fixed
  Replace the deprecated `max_satisfaction_weight` from `rust-miniscript` to `max_weight_to_satisfy`.

  ### Checklists
  #### All Submissions:
  * [x]  I've signed all my commits
  * [x]  I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x]  I ran `cargo fmt` and `cargo clippy` before committing

  #### Bugfixes:
  * [ ]  This pull request breaks the existing API
  * [ ]  I've added tests to reproduce the issue which are now passing
  * [x]  I'm linking the issue being fixed by this PR

ACKs for top commit:
  evanlinjin:
    ACK 798ed8ced25156049126645435127a22245e916f

Tree-SHA512: 60babecee21d52ea37078dd1db1e9984429

12 of 13 new or added lines in 3 files covered. (92.31%)

1 existing line in 1 file now uncovered.

9597 of 11367 relevant lines covered (84.43%)

5816.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8521947084.1 02 Apr 2024 11:24AM UTC 0
84.43
GitHub Action Run
Source Files on build 8521947084
Detailed source file information is not available for this build.
  • Back to Repo
  • 2bb65407 on github
  • Prev Build on master (#8497341000)
  • Next Build on master (#8578080656)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc