librustzcash icon indicating copy to clipboard operation
librustzcash copied to clipboard

Add a UNIQUE constraint on the `hash` column of the `blocks` table in zcash_client_sqlite.

Open nuttycom opened this issue 2 years ago • 0 comments

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

nuttycom avatar Aug 15 '22 23:08 nuttycom