Attempt to skip redundant startup account verification#26999
Attempt to skip redundant startup account verification#26999bw-solana merged 1 commit intosolana-labs:masterfrom
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_rootin the event we loaded frozen bank forks