Skip to content
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
merged 9 commits into from
Mar 9, 2023

Commits on Feb 22, 2023

  1. 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.
    nikurt committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    bb10705 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0767881 View commit details
    Browse the repository at this point in the history
  3. Merge

    nikurt committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    f21280f View commit details
    Browse the repository at this point in the history
  4. fmt

    nikurt committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    3a1638b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5e155da View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. Configuration menu
    Copy the full SHA
    12dfe2d View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. Configuration menu
    Copy the full SHA
    fe37af8 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. Configuration menu
    Copy the full SHA
    1dff792 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4884d71 View commit details
    Browse the repository at this point in the history