|
Ran
|
Jobs
1
|
Files
39
|
Run time
3s
|
Badge
README BADGES
|
push
github
Merge bitcoindevkit/bdk#1256: cherry-pick feat(wallet)!: add `NonEmptyDatabase` variant to `NewError` <a class=hub.com/bitcoindevkit/bdk/commit/a1d34afa2455d93d23a36fd78d94aa79c7e493d1">a1d34afa2 feat(wallet)!: add `NonEmptyDatabase` variant to `NewError` (志宇) Pull request description: ### Description `NewError` is the error type when constructing a wallet with `Wallet::new`. We want this to return an error when the database already contains data (in which case, the caller should use `load` or `new_or_load`). ### Notes to the reviewers This is cherry-picked from #1172 so that we can add it to the alpha.3 release. ### Changelog notice Change - Return `NonEmptyDatabase` error when constructing a wallet with `Wallet::new` if the file already contains data (in which case, the caller should use `load` or `new_or_load`). ### 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: * [x] I've added tests for the new feature * [x] I've added docs for the new feature ACKs for top commit: evanlinjin: ACK a1d34afa2455d93d23a36fd78d94aa79c7e493d1 Tree-SHA512: 7c20171fa4951005e18486588977d69f40a
8883 of 11008 relevant lines covered (80.7%)
6025.53 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 7429728695.1 | 0 |
80.7 |
GitHub Action Run |