Skip to content

Conversation

@igor56D
Copy link

@igor56D igor56D commented Oct 30, 2025

No description provided.

@igor56D igor56D changed the title Relaxation of the post-execution minimum balance check [SIMD-0392]: Relaxation of the post-execution minimum balance check Oct 30, 2025
@igor56D igor56D changed the title [SIMD-0392]: Relaxation of the post-execution minimum balance check [SIMD-0392]: Relaxation of post-execution min_balance check Oct 30, 2025
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few nits, but lgtm assuming we choose to go the grandfather route. i'm not totally sold that the disruption will be so big a deal

@brooksprumo brooksprumo self-requested a review November 4, 2025 20:44
@brooksprumo
Copy link
Contributor

Hi, checking in on the status of the SIMD. Is it ready for another round of reviews? (If yes, I suggest requesting re-reviews from folks.) Has there been any testing on a local cluster to mimic a rent increase, esp w.r.t. stake accounts?

@igor56D
Copy link
Author

igor56D commented Nov 12, 2025

Hi, checking in on the status of the SIMD. Is it ready for another round of reviews? (If yes, I suggest requesting re-reviews from folks.) Has there been any testing on a local cluster to mimic a rent increase, esp w.r.t. stake accounts?

  1. I'm in the process of wrapping up the implementation for this and 0389. I'll push it up later today as a draft PR. Also working on setting up tests for a local cluster, which should be ready shortly as well.
  2. I think the main open question right now is how (if at all) any core/system programs need to be updated as a result of this change. The stake program may require some tweaks to avoid using the rent sysvar for determining delegation amount. I believe @2501babe is looking into potential changes in the SPL token programs.

@2501babe
Copy link
Member

2501babe commented Nov 20, 2025

spl-token, spl-token-2022, and p-token have no issues, we would do similar to stake program and hardcode the maximum rent. im not aware of any programs other than these and stake that are affected. we can start the change process whenever this is accepted

we should also put that maximum in the simd, maybe under "new terminology" or "proposed changes"

@igor56D igor56D requested review from 2501babe and t-nelson December 2, 2025 20:26
Copy link
Contributor

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me! Some nits/questions:

@igor56D igor56D requested a review from brooksprumo December 5, 2025 19:57
@igor56D igor56D requested a review from brooksprumo December 5, 2025 20:13
@igor56D igor56D changed the title [SIMD-0392]: Relaxation of post-execution min_balance check SIMD-0392: Relaxation of post-execution min_balance check Dec 5, 2025
Copy link
Contributor

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I defer to @2501babe for all stake-related considerations.

@t-nelson
Copy link
Contributor

t-nelson commented Dec 5, 2025

... assuming we choose to go the grandfather route.

when/where was this decided?

@igor56D
Copy link
Author

igor56D commented Dec 5, 2025

... assuming we choose to go the grandfather route.

when/where was this decided?

When this proposal is merged, I guess. If there are alternatives you still think may be better then we can discuss them here.

@t-nelson
Copy link
Contributor

t-nelson commented Dec 5, 2025

it's in the discussion #399 (comment)

@igor56D
Copy link
Author

igor56D commented Dec 5, 2025

it's in the discussion #399 (comment)

We can continue the discussion there if you prefer. I believe I was the last person to comment on the topic (ref).

Comment on lines +42 to +50
- `legacy_rent_per_byte`: the fixed rent-exempt per-byte rate used prior to this
proposal.

```
acc_size = ACCOUNT_STORAGE_OVERHEAD + acc.data.len;
// 6,960 lamports on mainnet-beta
legacy_rent_per_byte = LAMPORTS_PER_BYTE_YEAR * EXEMPTION_THRESHOLD
legacy_min_balance = legacy_rent_per_byte * acc_size
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be part of the calculate_min_balance calculation? I don't see this legacy_min_balance used anywhere else in this proposal - am I missing something?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're not missing anything, I just included this to show how the min balance is currently calculated with references to the relevant constants in case people weren't familiar. Not really relevant to the rest of the content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants