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

Add genesis block, accounts at archive startup #10913

Merged
merged 2 commits into from
May 10, 2022

Conversation

psteckler
Copy link
Member

@psteckler psteckler commented May 9, 2022

When starting the archive process, if a runtime config is provided, archive the genesis block into the blocks table, and the genesis accounts into the accounts_accessed table. The archive processor creates an internal ledger for this purpose, and its Merkle root is compared against the ledger hash stored for the genesis block.

Other changes:

  • remove the initial_balance column of timing_info, it's redundant with the accounts_accessed balance
  • remove the explicit index on block(id), because it's a primary key
  • log the commit info on the archive process startup
  • hacks to get Rosetta to compile after these changes

Tested by running a local network, verifying that the accounts appear in accounts_accessed.

Closes #10912.
Closes #10904.
Closes #10888

@psteckler psteckler requested review from a team as code owners May 9, 2022 22:12
@psteckler psteckler added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label May 9, 2022
@psteckler psteckler merged commit 3024cb8 into develop May 10, 2022
@psteckler psteckler deleted the feature/archiver-add-accounts-accessed branch May 10, 2022 14:34
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
Projects
None yet
3 participants