From 8da7560bd9d1df88076f60d50333116b68d22460 Mon Sep 17 00:00:00 2001 From: jeff washington Date: Tue, 6 Aug 2024 13:08:17 -0500 Subject: [PATCH] clean up comment --- accounts-db/src/accounts_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index d4b3505b81ae01..28610eb79eb20a 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -11067,6 +11067,7 @@ pub mod tests { #[test] fn test_shrink_zero_lamport_single_ref_account() { solana_logger::setup(); + // note that 'None' checks the case based on the default value of `latest_full_snapshot_slot` in `AccountsDb` for latest_full_snapshot_slot in [None, Some(0), Some(1), Some(2)] { // store a zero and non-zero lamport account // make sure clean marks the ref_count=1, zero lamport account dead and removes pubkey from index completely @@ -11101,8 +11102,7 @@ pub mod tests { accounts.set_latest_full_snapshot_slot(latest_full_snapshot_slot); } - // Slot 1 should be cleaned, but - // zero-lamport account should not be cleaned since latest_full_snapshot_slot is before slot 1 + // Shrink the slot. The behavior on the zero lamport account will depend on `latest_full_snapshot_slot`. accounts.shrink_slot_forced(slot); assert!(