Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[abandoned] Do not check accounts data size in InvokeContext #26627

Conversation

brooksprumo
Copy link
Contributor

Problem

Original issue: #26439

Checking if the bank has exceeded the accounts data size limits cannot be done during instruction processing; it must be reserved until the end of the bank where there is no parallel execution, and thus will be handled deterministically across the cluster.

Summary of Changes

Do not throw errors inside of InvokeContext if the AccountsDataMeter exceeds the maximum. Note, the cap_accounts_data_len feature is not activated, so there are zero runtime changes to currently-running clusters.

Future PRs will move/add these checks to ReplayStage when the bank has completed.

Feature Gate Issue: modifies #24135

@brooksprumo brooksprumo added feature-gate Pull Request adds or modifies a runtime feature gate v1.10 labels Jul 14, 2022
@brooksprumo brooksprumo force-pushed the accounts-data-len/invoke-context branch from e873872 to b43ac4f Compare July 14, 2022 19:20
@brooksprumo brooksprumo added work in progress This isn't quite right yet noCI Suppress CI on this Pull Request labels Jul 14, 2022
@stale
Copy link

stale bot commented Jul 31, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added stale [bot only] Added to stale content; results in auto-close after a week. and removed stale [bot only] Added to stale content; results in auto-close after a week. labels Jul 31, 2022
@solana-labs solana-labs deleted a comment Aug 2, 2022
@brooksprumo brooksprumo force-pushed the accounts-data-len/invoke-context branch from b43ac4f to dfadbbd Compare August 5, 2022 13:59
@brooksprumo brooksprumo added CI Pull Request is ready to enter CI and removed work in progress This isn't quite right yet noCI Suppress CI on this Pull Request v1.10 labels Aug 5, 2022
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Aug 5, 2022
@brooksprumo
Copy link
Contributor Author

Closing, as this PR has been subsumed by #26773

@brooksprumo brooksprumo closed this Aug 5, 2022
@brooksprumo brooksprumo removed the feature-gate Pull Request adds or modifies a runtime feature gate label Aug 5, 2022
@brooksprumo brooksprumo changed the title Do not check accounts data size in InvokeContext [abandoned] Do not check accounts data size in InvokeContext Aug 5, 2022
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.

2 participants