-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: concurrent concurrent Merkle tree subtree updates (#703)
Issue: - The Concurrent Merkle trees prior logic to update the subtrees after an update didn't cover all edge cases. Solution: - Filled subtrees are the Merkle proof of the the leaf at ``next_index``, the first zero bytes leaf that has not been updated yet. - Thus, we can use the changelog method update proof to update the filled subtrees with the changes from the latest changelog. Changes: - replace update subtrees with update proof Note: - it is not necessary to handle the case ``leaf_index == changelog_entry.index`` because it is not possible to update ``self.next_index`` with the update method.
- Loading branch information
1 parent
dce2b98
commit ff4760e
Showing
3 changed files
with
292 additions
and
38 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