Skip to content

PRS-104, updated clean accounts logic#21

Open
BoogVAr wants to merge 4 commits intoparasol-devfrom
PRS-104-clean-accounts-logic
Open

PRS-104, updated clean accounts logic#21
BoogVAr wants to merge 4 commits intoparasol-devfrom
PRS-104-clean-accounts-logic

Conversation

@BoogVAr
Copy link

@BoogVAr BoogVAr commented Mar 4, 2026

Summary of logic changes:

  • Tightened cleanup criteria for zero-lamport accounts.
  • Added support for purging accounts where:

    lamports are 0,
    data is empty,
    owner is the System Program.

  • Preserved existing fork semantics where non-tombstone zero-lamport accounts (with meaningful owner/state) remain valid and are not removed.
  • Updated the related cleanup test expectations to align with current zero-lamport policy.
  • Added/updated regression coverage to confirm both scenarios:

    System-owned empty zero-lamport accounts are cleaned.
    Non-tombstone zero-lamport accounts are retained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant