solana/accounts-db/src
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
..
account_storage [TieredStorage] Use IndexOffset in TieredStorageMeta and get_account() (#35046) 2024-02-02 09:53:13 -08:00
accounts_db Refactors AccountsDb constructors (#34456) 2023-12-14 12:34:15 -05:00
accounts_index Moves in_mem_accounts_index.rs into accounts_index directory (#35360) 2024-02-29 06:51:18 -05:00
append_vec
epoch_accounts_hash
rolling_bit_field clippy: accounts-db lints (#34628) 2024-01-03 14:17:12 +00:00
tiered_storage [TieredStorage] rent_epoch() returns 0 for zero-lamport accounts (#35344) 2024-03-01 15:18:12 -08:00
account_info.rs Fix typos (#34459) 2023-12-21 13:06:00 -07:00
account_storage.rs add slot to assert message (#34225) 2023-11-28 10:29:39 -06:00
accounts.rs SVM: move transaction_results from accounts-db to SVM (#35183) 2024-02-20 12:54:56 -08:00
accounts_cache.rs
accounts_db.rs Casts executable bool to integer when computing account hash (#35373) 2024-03-01 14:28:28 -05:00
accounts_file.rs Move MatchAccountOwnerError from append_vec to accounts_file (#34187) 2023-11-21 10:39:56 -08:00
accounts_hash.rs SVM: Move `RentCollector` to sdk (#35122) 2024-02-07 16:38:42 -08:00
accounts_index.rs Moves in_mem_accounts_index.rs into accounts_index directory (#35360) 2024-02-29 06:51:18 -05:00
accounts_index_storage.rs Moves in_mem_accounts_index.rs into accounts_index directory (#35360) 2024-02-29 06:51:18 -05:00
accounts_partition.rs
accounts_update_notifier_interface.rs
active_stats.rs
ancestors.rs
ancient_append_vecs.rs Replaces ReadAccountMapEntry in ancient append vecs (#35238) 2024-02-20 13:52:11 -05:00
append_vec.rs Removes redundant check on STORE_META_OVERHEAD (#35069) 2024-02-04 16:56:12 +00:00
blockhash_queue.rs
bucket_map_holder.rs Moves in_mem_accounts_index.rs into accounts_index directory (#35360) 2024-02-29 06:51:18 -05:00
bucket_map_holder_stats.rs
cache_hash_data.rs Replaces bare Arc::default() in CacheHashData::new() (#35017) 2024-01-31 10:52:59 -05:00
cache_hash_data_stats.rs Adds hit/miss stats for cache hash data (#34954) 2024-01-25 17:27:45 -05:00
contains.rs Adds `S` to HashMap/HashSet impls of Contains (#33973) 2023-11-08 15:08:33 -05:00
epoch_accounts_hash.rs
hardened_unpack.rs Bubble up genesis load errors instead of exiting (#34851) 2024-01-19 10:25:46 -05:00
inline_spl_token.rs
inline_spl_token_2022.rs
lib.rs Moves in_mem_accounts_index.rs into accounts_index directory (#35360) 2024-02-29 06:51:18 -05:00
partitioned_rewards.rs Removes unnecessary #[allow(dead_code)] in partitioned rewards (#34321) 2023-12-05 15:58:11 +00:00
pubkey_bins.rs
read_only_accounts_cache.rs
rolling_bit_field.rs Removes Default from RollingBitField (#33969) 2023-11-07 15:58:52 -05:00
secondary_index.rs
shared_buffer_reader.rs
sorted_storages.rs
stake_rewards.rs SVM: Move RewardInfo from accounts-db to Solana SDK (#35120) 2024-02-07 10:55:39 -08:00
storable_accounts.rs
tiered_storage.rs [TieredStorage] Make TieredStorage::write_accounts() thread-safe (#35143) 2024-02-17 16:10:58 -08:00
utils.rs Moves the async deleter code to accounts-db (#35040) 2024-02-02 09:21:26 -05:00
verify_accounts_hash_in_background.rs Uses Display for error in VerifyAccountsHashInBackground's panic message (#34219) 2023-11-27 09:51:39 -05:00
waitable_condvar.rs