-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Attempt to skip redundant startup account verification #26999
Attempt to skip redundant startup account verification #26999
Conversation
c5705fe
to
74f4ec3
Compare
I think this is right / a valid adjustment to make:
Hypothetically, we could have a
instead of moving the cap. check inside the |
I'd like to separate out the wait for the bg hash calc: |
@carllin I roped you in. |
64112f6
to
0fc2ee0
Compare
Yeah this seems fine, good catch! The redundant check in blockstore_processor was added here: #11927 at which time the existing snapshot verification also already existed https://github.com/ryoqun/solana/blob/95cb371ecd6ba8dfb0527ee4e828081c1d0e937f/runtime/src/snapshot_utils.rs#L591 |
Problem
We potentially run accounts hash/capitalization verification from two places at almost the same time, which seems wasteful and appears to slow down startup by ~30 seconds (Takes ~2 minutes on current master and ~1.5 minutes after this change). Here is the call stack for each:
Summary of Changes
Wait for any existing verifications to complete. Only check capitalization from
process_blockstore_from_root
in the event we loaded frozen bank forks