-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tool: tree recovery #29
Merged
Merged
Conversation
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
b38127a
to
c2660f0
Compare
f11c04f
to
73994ae
Compare
forcodedancing
approved these changes
Aug 10, 2022
unclezoro
approved these changes
Aug 11, 2022
ruslangm
pushed a commit
to ruslangm/zkbnb
that referenced
this pull request
Jan 26, 2023
Added support for native keccak256 impl for block commitment calculation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Due to the introduction of the persistent
SparseMerkleTree
structure and support for persisting data to local (leveldb) and remote storage spaces (kvrocks, redis), we need a repair tool that can repair data when stored data is lost unexpectedly.Structure and Data
A total of four types of tree structures (account, asset, liquidty, nft) are required for system operation. Fortunately, the system will write the hash value to the
account_history
,nft_history
, andliquidity_history
table of RDB according to the block height .we can pass the SQL statement. e.g.
Read out the hash value of the corresponding height and put it back into the tree structure to generate a tree of that height.
Program
Changes