Skip to content

Commit

Permalink
Improves comment when setting latest full snapshot slot at startup (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Nov 15, 2024
1 parent bbadb80 commit 86750d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger/src/bank_forks_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ fn bank_forks_from_snapshot(
// We must inform accounts-db of the latest full snapshot slot, which is used by the background
// processes to handle zero lamport accounts. Since we've now successfully loaded the bank
// from snapshots, this is a good time to do that update.
// Note, this must only be set if we should generate snapshots.
// Note, this must only be set if we should generate snapshots, so that we correctly
// handle (i.e. purge) zero lamport accounts.
if snapshot_config.should_generate_snapshots() {
bank.rc
.accounts
Expand Down

0 comments on commit 86750d0

Please sign in to comment.