solana/runtime
Yueh-Hsuan Chiang d95e976a71
[TieredStorage] AccountMetaOptionalFields::size_from_flags() (#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.
2023-06-23 01:42:02 +08:00
..
benches Replace improper &Arc<...> with Arc<...> in Bank and Accounts (#31892) 2023-05-31 12:36:44 -05:00
src [TieredStorage] AccountMetaOptionalFields::size_from_flags() (#32242) 2023-06-23 01:42:02 +08:00
store-tool getter functions for StoredAccountMeta (#30447) 2023-02-27 10:03:22 -08:00
tests Enable partitioned epoch reward by feature id (#32174) 2023-06-20 12:12:50 -05:00
.gitignore
Cargo.toml add hash_rewards_into_partitions (#31795) 2023-06-09 11:55:01 -07:00
build.rs