]> Untitled Git - bdk/commit
feat(wallet)!: add `NonEmptyDatabase` variant to `NewError`
author志宇 <hello@evanlinjin.me>
Tue, 2 Jan 2024 05:03:19 +0000 (13:03 +0800)
committer志宇 <hello@evanlinjin.me>
Sat, 6 Jan 2024 05:19:03 +0000 (13:19 +0800)
commita1d34afa2455d93d23a36fd78d94aa79c7e493d1
treee7189940b285158a72d51b597b74fca6a2e91c44
parent9cc03324f4f99b106e957754ccdabfa4ebbfad52
feat(wallet)!: add `NonEmptyDatabase` variant to `NewError`

`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`).
crates/bdk/src/wallet/mod.rs
crates/bdk/tests/wallet.rs