magicblock-labs / magicblock-labs/delegation-program
Implement CloseTerminalAccounts
@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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.