-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject double-spends of nullifiers in the finalized state
Applies a RocksDB merge operator to the nullifier column families, so each nullifier key can only be written once. As a defence-in-depth against state corruption, we also prevent double-inserts of: - block heights - block hashes - transaction hashes - transparent `OutPoint`s But we expect that earlier checks should catch these double-inserts, before they are committed to RocksDB.
- Loading branch information
Showing
1 changed file
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters