]> Untitled Git - bdk/commit
[wip] Ensure there are no duplicated script_pubkeys in sqlite
authorAlekos Filini <alekos.filini@gmail.com>
Sat, 26 Nov 2022 13:52:49 +0000 (14:52 +0100)
committerAlekos Filini <alekos.filini@gmail.com>
Sat, 26 Nov 2022 14:04:34 +0000 (15:04 +0100)
commitc51d544932a666851c39f79a517e2e0a1e783b05
tree19e5e8b6fb69be84c7b6ae99a250893f57742d88
parent1c95ca33a87f8f3d0573566446a454f4930f969a
[wip] Ensure there are no duplicated script_pubkeys in sqlite

Add a `UNIQUE` constraint on the script_pubkeys table so that it doesn't
grow constantly when caching new addresses.

Fixes #801
src/database/sqlite.rs