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

bitcoindevkit / bdk / 8763309911
79%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2024 07:00AM 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

20 Apr 2024 06:54AM UTC coverage: 84.645% (+0.02%) from 84.625%
8763309911

push

github

evanlinjin
Merge bitcoindevkit/bdk#1387: fix(wallet): remove the generic from wallet

<a class=hub.com/bitcoindevkit/bdk/commit/e51af49ffa951e14203ac2b465ade351dd90f6cd">e51af49ff fix(wallet): remove generic from wallet (Rob N)

Pull request description:

  ### Description

  The `PersistenceBackend` uses generics to describe errors returned while applying the change set to the persistence layer. This change removes generics wherever possible and introduces a new public error enum. Removing the generics from `PersistenceBackend` errors is the first step towards #1363

  *Update*: I proceeded with removing the generics from `Wallet` by introducing a `Box<dyn PersistenceBackend>` .

  ### Notes to the reviewers

  This one sort of blew up in the number of changes due to the use of generics for most of the `Wallet` error variants. The generics were only used for the persistence errors, so I removed the generics from higher level errors whenever possible. The error variants of `PersistenceBackend` may also be more expressive, but I will level that up for discussion and make any changes required.

  ### Changelog notice

  - Changed `PersistenceBackend` errors to depend on the `anyhow` crate.
  - Remove the generic `T` from `Wallet`

  ### 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

  #### New Features:

  * [ ] I've added tests for the new feature
  * [x] I've added docs for the new feature

  #### Bugfixes:

  * [x] 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 e51af49ffa951e14203ac2b465ade351dd90f6cd

Tree-SHA512: 8ce4f1c49eda6800450d75001c4181117ff

45 of 69 new or added lines in 6 files covered. (65.22%)

3 existing lines in 1 file now uncovered.

9597 of 11338 relevant lines covered (84.64%)

18101.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8763309911.1 20 Apr 2024 07:00AM UTC 0
84.64
GitHub Action Run
Source Files on build 8763309911
Detailed source file information is not available for this build.
  • Back to Repo
  • f00de9e0 on github
  • Prev Build on master (#8734180057)
  • Next Build on master (#8763552024)
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