Skip to content
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
@pgarg66

Description

@pgarg66

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions