librustzcash
librustzcash copied to clipboard
Add a UNIQUE constraint on the `hash` column of the `blocks` table in zcash_client_sqlite.
blocks.hash
should be indexed I think. Actually it should maybe be UNIQUE, since zcashd pervasively assumes block hashes are unique.
Originally posted by @daira in https://github.com/zcash/librustzcash/pull/600#discussion_r946168618