Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TieredStorage] AccountMetaOptionalFields::size_from_flags() (solana-…
…labs#32242) #### Summary of Changes This PR adds AccountMetaOptionalFields::size_from_flags that takes `&AccountMegaFlags` and returns the size of the AccountMetaOptionalFields based on the input AccountMegaFlags. This function is needed because the reader of the TieredAccountMeta directly extract all the Some fields of AccountMetaOptionalFields from its account block without constructing the AccountMetaOptionalFields instance. #### Test plan Improve existing unit tests that further verify the correctness of the function.
- Loading branch information