Skip to main content
Technical proposal SIMD-0608 Review

DeactivateDelinquent for Closed Vote Accounts

  1. Idea
  2. Draft
  3. Review
  4. Accept
  5. Implement
  6. Active

Decision brief

Why this proposal matters

Allow the Stake Program's existing DeactivateDelinquent instruction to deactivate stake delegated to a closed vote account. The delegated vote account is treated as closed when its address is no longer owned by the Vote Program or its Vote Program owned data meets the uninitialized conditions below. All other validation, the instruction interface, and deactivation behavior remain unchanged.

Source-backed reading aid · source language: EN

Proposal at a glance

What changes

  • The delegated vote account address is not owned by the Vote Program. This is the normal result of closure. Funding the address later creates a System Program owned account, which also satisfies this condition.
  • The address is owned by the Vote Program but contains uninitialized data. This state can exist if the address holder recreates a zero filled account and assigns it to the Vote Program. The same state can also result when lamports are returned during the transaction that closes the vote account. The data is considered uninitialized when:
  • It contains fewer than four bytes and every byte is zero.

Stakeholder map

Who is affected

Builders & client teams Medium impact

Validators: Clients must support the feature-gated upgrade to the Stake Program ELF containing this change. No other validator changes are required.

Action may be required
Validators & operators Medium impact

Callers: Anyone can use the new path for stake whose delegated vote account meets one of the closed or uninitialized conditions defined above. The stake enters normal cooldown without moving lamports or changing its authorities.

Action requirement unknown
Users & stakers Impact unknown

No proposal-specific evidence was found for this group.

Action requirement unknown
Governance & ecosystem Impact unknown

No proposal-specific evidence was found for this group.

Action requirement unknown

Exact source revision

Full proposal document

Source-language document. Technical identifiers and evidence remain unchanged. 0616093b2952

Summary

Allow the Stake Program's existing DeactivateDelinquent instruction to deactivate stake delegated to a closed vote account. The delegated vote account is treated as closed when its address is no longer owned by the Vote Program or its Vote Program owned data meets the uninitialized conditions below. All other validation, the instruction interface, and deactivation behavior remain unchanged.

Motivation

DeactivateDelinquent allows anyone to begin cooldown on stake delegated to a validator that has stopped voting. It requires initialized vote state showing either no credits ever or none in the last five epochs, plus an active reference vote account showing that the cluster continued voting.

If a validator closes their vote account, DeactivateDelinquent can no longer validate that account's vote state and fails before examining the delegated stake account. The stake authority can still deactivate normally, but if they never act, the permissionless path is lost. The closed vote account leaves behind an orphaned delegation whose stake continues contributing to stake-history accounting until deactivated. This proposal restores a permissionless way to begin the stake's cooldown.

Note: This case does not pose a persistent liveness risk because the closed vote account is excluded from future epoch-stakes snapshots and leader schedules.

New Terminology

N/A

Detailed Design

Delinquency conditions

DeactivateDelinquent treats the delinquency condition as satisfied in two new cases:

  1. The delegated vote account address is not owned by the Vote Program. This is the normal result of closure. Funding the address later creates a System Program owned account, which also satisfies this condition.
  2. The address is owned by the Vote Program but contains uninitialized data. This state can exist if the address holder recreates a zero filled account and assigns it to the Vote Program. The same state can also result when lamports are returned during the transaction that closes the vote account. The data is considered uninitialized when:
    1. It contains fewer than four bytes and every byte is zero.
    2. It contains at least four bytes and its first four bytes encode the little endian zero discriminator. Only the discriminator is inspected so a large zero filled shell cannot make cleanup exceed the instruction's compute budget.

All other Vote Program owned data follows the existing vote state decoding and epoch credit delinquency checks. Decoding failures, including unknown nonzero discriminators, remain errors.

The active reference vote account and delegation address checks remain unchanged. Successful processing deactivates the stake at the current epoch as it does today.

Alternatives Considered

  • Keep the existing behavior, leaving abandoned stake without a permissionless deactivation path.
  • Treat only zero-lamport addresses as closed. Funding a closed address would create a nonzero System Program account and block cleanup even though no initialized vote state exists there.
  • Treat only addresses not owned by the Vote Program as closed. A closed address can remain or be recreated as a Vote Program-owned zero-filled shell, which would still block cleanup.
  • Treat every vote-state decoding failure as a closed account. However, an unknown nonzero discriminator could represent a future vote account state.
  • Preserve the five-epoch delay, but that would require new state because the Stake Program cannot determine when the vote account was closed.

Impact

  • Callers: Anyone can use the new path for stake whose delegated vote account meets one of the closed or uninitialized conditions defined above. The stake enters normal cooldown without moving lamports or changing its authorities.
  • Instruction interface: No change.
  • Validators: Clients must support the feature-gated upgrade to the Stake Program ELF containing this change. No other validator changes are required.

Security Considerations

Closing a vote account can make its delegated stake eligible for DeactivateDelinquent sooner. A vote account that has earned credits may be closed after two epochs without credits, while DeactivateDelinquent normally requires five. That delay gives an offline validator time to recover before its delegated stake can be deactivated. Closing a vote account, however, requires an explicit transaction authorized by its withdraw authority, so there is no outage to wait out.

The new path applies only to stake already delegated to the supplied vote account address. Stake can only become delegated to an address that previously contained initialized vote state. DelegateStake continues to reject zero-filled or uninitialized vote accounts.

Only the recognized closed and uninitialized states bypass vote-state decoding. Malformed initialized formats and unknown nonzero discriminators retain their existing errors. This prevents an older Stake Program from treating an unsupported future vote-state version as delinquent.

Evidence graph

Related proposals and rollout

One or more sources are unavailable.

Upstream review record

Upstream discussion & review

GitHub review is editorial context, not evidence of on-chain support, voting, or outcome.

PR #608 · merged SIMD-0608: DeactivateDelinquent for Closed Vote Accounts 8 comments and reviews · Sep 8, 2026
@simd-botbot

Hello grod220(https://github.com/grod220)! Welcome to the SIMD process. By opening this PR you are affirming that your SIMD has been thoroughly discussed and vetted in the SIMD discussion section(https://github.com/solana-foundation/solana-improvement-documents/discussions/categories/ideas). The SIMD PR section should only be used to submit a final technical specification for review. If your design / idea still needs discussion, please close this PR and create a new discussion here(https://github.com/solana-foundation/solana-improvement-documents/discussions/categories/ideas). This PR requires the following approvals before it can be merged: - At least one approval from a Anza team member: t

GitHub ↗
@simd-botbot

Thanks, topointon-jump(https://github.com/topointon-jump)! ⚠️ Status: Cannot merge yet - Missing approval from: Anza (t-nelson(https://github.com/t-nelson), steviez(https://github.com/steviez), or bw-solana(https://github.com/bw-solana))

GitHub ↗
@bw-solana

nit: this should probably go in the PR description but not the actual proposal

GitHub ↗
@bw-solana

might be nice to state the obvious about how deactivating delinquent stake accounts is better for liveness because of consensus stake thresholds and how higher participation is more responsive

GitHub ↗
@grod220

Right below I made a comment on liveness risk: Note: This case does not pose a persistent liveness risk because the closed vote account is excluded from future epoch-stakes snapshots and leader schedules. computenewepochcachesandrewards() calls grab the stake from the cache(https://github.com/anza-xyz/agave/blob/10261bd5d5e23377afb83c74dc8a4ad5ee4ad7a6/runtime/src/bank.rsL1762). Which then calls calculateactivatedstake() which populates a vote-account map. And that map is the snapshot that is stored(https://github.com/anza-xyz/agave/blob/10261bd5d5e23377afb83c74dc8a4ad5ee4ad7a6/runtime/src/bank.rsL1857-L1859) and later retrieved(https://github.com/anza-xyz/agave/blob/10261bd5d5e23377afb83c74

GitHub ↗
@simd-botbot

✅ All approvals received! @grod220, you can now merge this by commenting /merge. ✅ Status: Ready to merge

GitHub ↗
@simd-botbot

✅ Merge successful! grod220(https://github.com/grod220)'s PR has been merged.

GitHub ↗

simd.watch community discussion · SIMD-0608

Powered by Giscus · Sign in with GitHub to comment

Community comments load when this section approaches the viewport.

Provenance

Evidence & technical details

Rollout or chain data, source revisions, freshness and integrity.
2

SIMD

Deployment Status

Document lifecycleReview
CategoryCore protocol

Feature Gate not yet created

Exact source revision

Sources & integrity

  • Proposal document pinned_commit_blob
    0616093b2952ed6de52c4a27d66aadd11d48d4f9
  • simd-document document · stale · Sep 9, 2026
    0616093b2952ed6de52c4a27d66aadd11d48d4f9

One or more sources are unavailable.