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

Populate ledger with set_batch_accounts #13470

Merged
merged 4 commits into from
Jun 28, 2023
Merged

Conversation

psteckler
Copy link
Member

@psteckler psteckler commented Jun 27, 2023

Use set_batch_accounts instead of create_new_account when populating the ledger from a config file.

Using a ledger derived from the current mainnet staking ledger, with about 160k accounts, the time to populate the ledger is reduced from 336 seconds to 84 seconds, a 75% reduction.

Verified that the ledger Merkle root is the same as when using the existing implementation.

Closes #13072.

@psteckler psteckler requested a review from a team as a code owner June 27, 2023 00:07
@psteckler
Copy link
Member Author

!ci-build-me

@psteckler
Copy link
Member Author

!ci-build-me

@psteckler
Copy link
Member Author

!ci-build-me

@mrmr1993
Copy link
Member

!approved-for-mainnet

@psteckler psteckler merged commit 8396d0c into berkeley Jun 28, 2023
46 checks passed
@psteckler psteckler deleted the feature/faster-ledger-load branch June 28, 2023 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants