forked from tari-project/tari
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow 0-conf in blockchain db (tari-project#3680)
Description --- - account for 0-conf in insert_block_body - readd some ignored tests Motivation and Context --- With the addition of the unique_id index, inputs are added before outputs in insert_block_body. This prevents inputs from spending outputs contained in the same block because outputs do not yet exist. This fixes that by adding to the pruned output mmr before adding inputs and correctly deletes 0-conf spends from the commitment index. How Has This Been Tested? --- Previously ignored/failing tests `local_get_new_block_with_zero_conf` and `local_get_new_block_with_combined_transaction` now pass.
- Loading branch information
Showing
7 changed files
with
108 additions
and
137 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
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.