Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoindevkit#806: Ensure there are no duplicated script_pubkey…
…s in sqlite b5fcddc Add sqlite migration to drop duplicated script_pubkeys rows (Steve Myers) 21c96c9 Add test for issue bitcoindevkit#801 (Alekos Filini) c51d544 [wip] Ensure there are no duplicated script_pubkeys in sqlite (Alekos Filini) Pull request description: ### Description Add a `UNIQUE` constraint on the script_pubkeys table so that it doesn't grow constantly when caching new addresses. Fixes bitcoindevkit#801 ### Notes to the reviewers Adding it to the 0.25 milestone since it's just a bugfix. Still in draft because I need to add extra migration queries to clean up existing dbs. ### 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 #### Bugfixes: * [ ] This pull request breaks the existing API * [x] 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: notmandatory: ACK b5fcddc Tree-SHA512: 7b10e453bb38af5c4f80f77692a56e37259680e50f9c2c9e554a0e5f04fb9cab897da6476c6c9930f1c501b455472984a1c92c4f137cff49acdc390d2e705107
- Loading branch information