magicblock-labs / magicblock-labs/delegation-program

Implement CloseTerminalAccounts

Open
#227 0 comments 0 reactions 1 assignee View on GitHub

@snawaz is already working on this.

Since Sep 17, 2026.

Dominant language
Rust
Stars
30
Forks
21
Avg merge
20m
Merged PRs (30d)
1

Description

### Scope

Close only terminal accounts whose parent commitment or challenge can no longer change. Reject cleanup of live protocol state and send reclaimed lamports to the prescribed recipient.

This remains v2 lifecycle work, at lower priority than the core commitment and challenge flow.

Design: [v2 implementation notes](https://github.com/magicblock-labs/delegation-program/blob/36e1efae94660460fdc6d823afb1fbc4c504e8a6/mimd-0024-impl.md#low-priority-instructions).

### Outcome

Reclaim terminal records and buffers through `CloseTerminalAccounts`.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.