solana/accounts-db
Yueh-Hsuan Chiang 608329b974
[TieredStorage] rent_epoch() returns 0 for zero-lamport accounts (#35344)
#### Problem
In TieredAccountMeta, RENT_EXEMPT_RENT_EPOCH will be used when
its optional field rent_epoch is None.  However, for legacy reasons, 0
should be used for zero-lamport accounts.

#### Summary of Changes
Return 0 for TieredAccountMeta::rent_epoch() for zero-lamport accounts.

#### Test Plan
accounts_db::tests::test_clean_zero_lamport_and_dead_slot
2024-03-01 15:18:12 -08:00
..
benches remove IncludeSlotInHash after feature activation on mnb (#33816) 2023-10-23 15:12:02 -07:00
src [TieredStorage] rent_epoch() returns 0 for zero-lamport accounts (#35344) 2024-03-01 15:18:12 -08:00
store-tool Uses AccountHash in StorableAccountsWithHashesAndWriteVersions (#33751) 2023-10-18 18:58:19 -04:00
Cargo.toml Removes ouroboros dependency (#35355) 2024-02-28 17:58:14 -05:00
build.rs Crates have identical build.rs to frozen-abi can just be symlink (#33787) 2023-10-21 13:33:10 -05:00