Skip to content

program: Properly delete accounts #71

@joncinque

Description

@joncinque

Problem

When a stake account is "deleted", through being merged or withdrawn from, we just set the state back to Uninitialized, which leaves the account not completely deleted. Most protocols realloc the account to a size of 0 and assign its owner back to the system program.

Proposed Solution

Get the stake program in line with other programs, and completely delete accounts.

Metadata

Metadata

Assignees

Labels

programrelated to the core bpf program itself

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions