-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ironfish): Check for transactions with duplicate nullifiers earli…
…er (#3898) While it is not possible to double spend in this way due to checking for this when adding a block to the chain, this kind of transaction could cause issues for miners by getting them to create invalid blocks. By checking for this on gossip and when adding a transaction to the mempool, we remove that possibility. It is not necessary to check this in all of the places that we are, but it is a relatively cheap check, so if we re-introduce the flaw in one place in the future, it will still get caught.
- Loading branch information
Showing
8 changed files
with
517 additions
and
91 deletions.
There are no files selected for viewing
265 changes: 184 additions & 81 deletions
265
ironfish/src/blockchain/__fixtures__/blockchain.test.ts.fixture
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.