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

bitcoindevkit / bdk_wallet / 16763268196
85%

Build:
DEFAULT BRANCH: master
Ran 05 Aug 2025 11:06PM 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

05 Aug 2025 11:04PM UTC coverage: 84.912% (+0.02%) from 84.888%
16763268196

push

github

ValuedMammal
Merge bitcoindevkit/bdk_wallet#288: Fix `KeychainTxOutIndex` recovery logic when spk-cache is enabled

<a class=hub.com/bitcoindevkit/bdk_wallet/commit/<a class="double-link" href="https://git"><a class=hub.com/bitcoindevkit/bdk_wallet/commit/e2814e813feb8239d091c2704eb28a4f31664b4d">e2814e813 fix: `KeychainTxOutIndex` recovery logic when spk-cache is enabled (志宇)

Pull request description:

  ### Description

  We should ensure we populate the cache (from the changeset) before doing any other operation on `KeychainTxOutIndex` (i.e. inserting descriptors).

  Otherwise we will end up re-deriving spks which have already been cached.

  The test is also corrected to check that we don't duplicate deriving spks. A helper function `check_cache_cs` is added to make the tests more thorough and easier to read.

  ### Changelog notice

  ```md
  Fixed:
  * Recovering from spk-cache now works properly.
  ```

  ### 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 `just p` before pushing

  #### Bugfixes:

  * [x] I've added tests to reproduce the issue which are now passing

  > ~* [ ] This pull request breaks the existing API~
  > ~* [ ] I'm linking the issue being fixed by this PR~

ACKs for top commit:
  ValuedMammal:
    ACK e2814e813feb8239d091c2704eb28a4f31664b4d
  oleonardolima:
    cACK e2814e813feb8239d091c2704eb28a4f31664b4d

Tree-SHA512: fdfb2880e8db46b2363f5eb615520a35f0d

51 of 53 new or added lines in 1 file covered. (96.23%)

6669 of 7854 relevant lines covered (84.91%)

3481.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
81.85
0.17% wallet/src/wallet/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 16763268196.1 05 Aug 2025 11:06PM UTC 22
84.91
GitHub Action Run
Source Files on build 16763268196
  • Tree
  • List 22
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 20edf983 on github
  • Prev Build on master (#16730629587)
  • Next Build on master (#16765585331)
  • 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