Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Add feature for capping accounts data len#21912

Closed
brooksprumo wants to merge 1 commit intosolana-labs:masterfrom
brooksprumo:accounts-data-len-5-feature-gate
Closed

Add feature for capping accounts data len#21912
brooksprumo wants to merge 1 commit intosolana-labs:masterfrom
brooksprumo:accounts-data-len-5-feature-gate

Conversation

@brooksprumo
Copy link
Copy Markdown
Contributor

@brooksprumo brooksprumo commented Dec 15, 2021

Problem

Before adding in logic that will fail instructions that exceed the maximum accounts data len, there needs to be a feature flag to gate the changes. That feature doesn't exist yet.

For more context see the main issue #21604

Summary of Changes

Add the feature.

@brooksprumo brooksprumo added blocked Unable to proceed noCI Suppress CI on this Pull Request labels Dec 15, 2021
@brooksprumo brooksprumo changed the title accounts data len 5 feature gate Add feature gate for capping accounts data len Dec 15, 2021
@brooksprumo brooksprumo changed the title Add feature gate for capping accounts data len Add feature for capping accounts data len Dec 15, 2021
@brooksprumo
Copy link
Copy Markdown
Contributor Author

brooksprumo commented Dec 15, 2021

Blocked waiting on #21807 (and #21813)

Comment thread program-runtime/src/invoke_context.rs Outdated
@brooksprumo brooksprumo force-pushed the accounts-data-len-5-feature-gate branch from 0431a71 to d8fb0be Compare December 15, 2021 15:26
@brooksprumo brooksprumo force-pushed the accounts-data-len-5-feature-gate branch from d8fb0be to a0b9170 Compare December 15, 2021 23:06
@brooksprumo brooksprumo added CI Pull Request is ready to enter CI and removed noCI Suppress CI on this Pull Request blocked Unable to proceed labels Dec 15, 2021
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Dec 15, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 16, 2021

Codecov Report

Merging #21912 (a0b9170) into master (8d22ca5) will increase coverage by 0.0%.
The diff coverage is 72.2%.

@@           Coverage Diff            @@
##           master   #21912    +/-   ##
========================================
  Coverage    81.2%    81.3%            
========================================
  Files         516      516            
  Lines      144284   144365    +81     
========================================
+ Hits       117256   117381   +125     
+ Misses      27028    26984    -44     

@brooksprumo brooksprumo marked this pull request as ready for review December 16, 2021 18:48
@brooksprumo brooksprumo requested a review from jackcmay December 16, 2021 18:48
@jackcmay
Copy link
Copy Markdown
Contributor

Usually we just add these pieces along with the featurizing logic peices

@brooksprumo
Copy link
Copy Markdown
Contributor Author

Closing. Will pull this into the code that uses the feature.

@brooksprumo brooksprumo deleted the accounts-data-len-5-feature-gate branch December 16, 2021 19:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants