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

Replayer test in epoch 1 #8535

Merged
merged 3 commits into from Apr 9, 2021
Merged

Conversation

psteckler
Copy link
Member

Update the replayer test data to use the mainnet archive db, dumped in epoch 1, around slot 7542.

The db had to be patched to handle the swapped balances in combined fee transfers. In the replayer, there's some additional logging to help find those errors.

For combined fee transfers, verify the balances for both receivers, not just one of them.

Improved a log for the extract_blocks app.

How the db was patched:

  • run the replayer, modified to not exit on failures, on the db, save the logs
  • use extract_blocks to get extensional blocks from the db
  • edit the extensional blocks to re-swap balances where errors were reported
  • delete the affected blocks from the db:
    for affected blocks with a given state_hash
    • UPDATE blocks SET parent_id = NULL WHERE parent_hash = state_hash
    • DELETE FROM blocks where state_hash = state_hash
  • re-create those blocks using archive_blocks
  • verify the integrity of the db using the unmodified replayer

After this procedure, there is some orphan data in the db, like unused balances. The orphan data is, well, orphaned, so it's not connected to any blocks.

@psteckler psteckler added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label Apr 2, 2021
@mrmr1993 mrmr1993 merged commit a14a7c5 into compatible Apr 9, 2021
@mrmr1993 mrmr1993 deleted the feature/replayer-test-in-epoch1 branch April 9, 2021 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch waiting-for-gating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants