This repository was archived by the owner on Jan 22, 2025. It is now read-only.
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Accounts with 0 balance retain state in checkpoint'ed bank #1931
Closed
Description
Problem
Checkpoint'ed bank doesn't drop the account when the balance reaches 0. It updates the balance to 0, and retains the account. However, it also retains the program assignments and userdata for the account, consuming RAM and resources.
Proposed Solution
When the balance drop to 0, replace the account with Account::default()
Metadata
Metadata
Assignees
Labels
No labels