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

bitcoindevkit / bdk_wallet / 16006598740
85%

Build:
DEFAULT BRANCH: master
Ran 01 Jul 2025 05:58PM UTC
Jobs 1
Files 22
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

01 Jul 2025 05:52PM UTC coverage: 84.663% (-0.9%) from 85.55%
16006598740

push

github

oleonardolima
Merge bitcoindevkit/bdk_wallet#265: Prefer Utxo::Local over Utxo::Foreign in OldestFirstCoinSelection

<a class=hub.com/bitcoindevkit/bdk_wallet/commit/<a class="double-link" href="https://git"><a class=hub.com/bitcoindevkit/bdk_wallet/commit/345cc6ea553a2db74742fa9e673985004d852fb9">345cc6ea5 fix(coin_selection): prefer Utxo::Local over Utxo::Foreign in OldestFirstCoinSelection (nymius)

Pull request description:

  ### Description

  The comments in the `OldestFirstCoinSelection` implementation stated the following:
  > // For utxo that doesn't exist in DB, they will have lowest priority to be selected

  But this was not honored in the code.

  This PR enforces this and ensures the expected behaviour through the two following new tests:
  - `test_oldest_first_coin_selection_uses_all_optional_with_foreign_utxo_locals_sorted_first`
  - `test_oldest_first_coin_selection_uses_only_all_optional_local_utxos_not_a_single_foreign`

  Fixes #264

  ### Changelog notice

  No public APIs are changed by these commits.

  ### Checklists

  > [!IMPORTANT]
  > This pull request **DOES NOT** break the existing API
  * [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 +nightly fmt` and `cargo clippy` before committing
  * [x] I've added tests for the new code
  * [x] I've expanded docs addressing new code
  * [x] 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:
  ValuedMammal:
    ACK 345cc6ea553a2db74742fa9e673985004d852fb9
  oleonardolima:
    ACK 345cc6ea553a2db74742fa9e673985004d852fb9

Tree-SHA512: 8a538e0765a5bb13c3405a9e35f80af866b

68 of 68 new or added lines in 1 file covered. (100.0%)

14 existing lines in 5 files now uncovered.

6525 of 7707 relevant lines covered (84.66%)

3431.2 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.34
-1.07% wallet/src/descriptor/dsl.rs
2
85.0
-1.81% wallet/src/wallet/changeset.rs
3
79.07
-1.01% wallet/src/descriptor/policy.rs
4
98.04
-1.31% wallet/src/descriptor/template.rs
4
81.04
-0.05% wallet/src/wallet/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 16006598740.1 01 Jul 2025 05:58PM UTC 22
84.66
GitHub Action Run
Source Files on build 16006598740
  • Tree
  • List 22
  • Changed 21
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d0ba53c1 on github
  • Prev Build on master (#15719064446)
  • Next Build on master (#16007771213)
  • Delete
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

© 2025 Coveralls, Inc