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

bitcoindevkit / bdk / 7568724830
79%

Build:
DEFAULT BRANCH: master
Ran 18 Jan 2024 10:42AM UTC
Jobs 1
Files 39
Run time 3s
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

18 Jan 2024 10:36AM UTC coverage: 80.54% (-0.2%) from 80.696%
7568724830

push

github

danielabrozzoni
Merge bitcoindevkit/bdk#1269: Revamp `KeychainTxOutIndex` API to be safer

71fff1613 feat(chain): add txout methods to `KeychainTxOutIndex` (志宇)
83e7b7ec4 docs(chain): improve `KeychainTxOutIndex` docs (志宇)
9294e3094 docs(wallet): improve docs for unbounded spk iterator methods (志宇)
b74c2e262 fix(wallet): use efficient peek address logic (志宇)
81aeaba48 feat(chain): add `SpkIterator::descriptor` method (志宇)
c7b47af72 refactor(chain)!: revamp `KeychainTxOutIndex` API (志宇)
705690ee8 feat(chain): make output of `SpkTxOutIndex::unused_spks` cloneable (志宇)

Pull request description:

  Closes #1268

  ### Description

  Previously `SpkTxOutIndex` methods can be called from `KeychainTxOutIndex` due to the `DeRef` implementation. However, the internal `SpkTxOut` will also contain lookahead spks resulting in an error-prone API.

  `SpkTxOutIndex` methods are now not directly callable from `KeychainTxOutIndex`. Methods of `KeychainTxOutIndex` are renamed for clarity. I.e. methods that return an unbounded spk iter are prefixed with `unbounded`.

  In addition to this, I also optimized the peek-address logic of `bdk::Wallet` using the optimized `<SpkIterator as Iterator>::nth` implementation.

  ### Notes to the reviewers

  This is mostly refactoring, but can also be considered a bug-fix (as the API before was very problematic).

  ### Changelog notice

  Changed
  * Wallet's peek-address logic is optimized by making use of `<SpkIterator as Iterator>::nth`.
  * `KeychainTxOutIndex` API is refactored to better differentiate between methods that return unbounded vs stored spks.
  * `KeychainTxOutIndex` no longer directly exposes `SpkTxOutIndex` methods via `DeRef`. This was problematic because `SpkTxOutIndex` also contains lookahead spks which we want... (continued)

8923 of 11079 relevant lines covered (80.54%)

5995.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7568724830.1 18 Jan 2024 10:42AM UTC 0
80.54
GitHub Action Run
Source Files on build 7568724830
Detailed source file information is not available for this build.
  • Back to Repo
  • 60abd87a on github
  • Prev Build on master (#7529170955)
  • Next Build on master (#7569046569)
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