-
Notifications
You must be signed in to change notification settings - Fork 618
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
feat: Dump and apply state changes for a range of blocks. #8628
Merged
+520
−32
Commits on Feb 22, 2023
-
feat: Dump and apply state changes for a range of blocks.
This simulates shard shadowing. In order to fully correctly replay state changes and get matching state roots, all kinds of state changes need to be applied, including the ones which currently are filtered out. To achieve this I add a compilation feature. Furthermore, DelayedReceipt{,Indices} state changes have no information about the shard they are coming from, which leads to two issues: 1) If two shards have a `DelayedReceipt` change, they will override one another, and the StateChanges column will contain only one of them. 2) We don't know to which shard to apply these state changes. The solution is to encode ShardUId in the row key of the StateChanges column for these two kids of state changes. The other kinds of state changes are matched to shards by their account_ids or receiver_ids. Combination of these two solutions lets us have a backwards-compatible solution.
Configuration menu - View commit details
-
Copy full SHA for bb10705 - Browse repository at this point
Copy the full SHA bb10705View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0767881 - Browse repository at this point
Copy the full SHA 0767881View commit details -
Configuration menu - View commit details
-
Copy full SHA for f21280f - Browse repository at this point
Copy the full SHA f21280fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a1638b - Browse repository at this point
Copy the full SHA 3a1638bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e155da - Browse repository at this point
Copy the full SHA 5e155daView commit details
Commits on Feb 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 12dfe2d - Browse repository at this point
Copy the full SHA 12dfe2dView commit details
Commits on Mar 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fe37af8 - Browse repository at this point
Copy the full SHA fe37af8View commit details
Commits on Mar 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1dff792 - Browse repository at this point
Copy the full SHA 1dff792View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4884d71 - Browse repository at this point
Copy the full SHA 4884d71View commit details
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.