[TieredStorage] Deprecate the use of account-hash in HotStorage#93
[TieredStorage] Deprecate the use of account-hash in HotStorage#93yhchiang-sol merged 2 commits intoanza-xyz:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #93 +/- ##
=========================================
- Coverage 81.8% 81.8% -0.1%
=========================================
Files 837 838 +1
Lines 225922 225871 -51
=========================================
- Hits 184955 184868 -87
- Misses 40967 41003 +36 |
| /// Note that the storage representation of the optional fields might be | ||
| /// different from its in-memory representation. | ||
| #[derive(Debug, PartialEq, Eq, Clone)] | ||
| pub struct AccountMetaOptionalFields<'a> { |
There was a problem hiding this comment.
Removing the lifetime is a nice bonus!
|
For compressed state, we need to store the hash per account. We also likely need to store a heterogenous mixture of full accounts or hash. |
If we want to use the minimum storage size to handle state-compressed accounts, then having a dedicated block for all the state-compressed accounts would probably lead to the best result. The resulting tiered-storage file would look something like this:
A state-compressed block can be simply: |
…-xyz#93) #### Problem TieredStorage stores account hash as an optional field inside its HotStorage. However, the field isn't used and we have already decided to deprecate the account hash. #### Summary of Changes Remove account-hash from the tiered-storage. #### Test Plan Existing tiered-storage tests. Running validators w/ tiered-storage in mainnet-beta w/o storing account-hash.
Problem
TieredStorage stores account hash as an optional field inside its HotStorage.
However, the field isn't used and we have already decided to deprecate
the account hash.
Summary of Changes
Remove account-hash from the tiered-storage.
Test Plan
Existing tiered-storage tests.
Running validators w/ tiered-storage in mainnet-beta w/o storing account-hash.