-
Notifications
You must be signed in to change notification settings - Fork 257
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
Loader-v3 programdata account size is not counted towards limit if executed through CPI #2274
Comments
I'd like to take on this task by refactoring the existing code and likely adding a feature gate to make this behavior consistent with other loaders. |
@Lichtso do you have something in pipeline might potentially conflict with it? |
Yes, but @jstarry and I already coordinated. |
FYI this will be addressed in @2501babe's loaded account data size SIMD here: solana-foundation/solana-improvement-documents#186 |
I was looking at how exactly are CPI program executed and it's a bit confusing. https://github.com/anza-xyz/agave/blob/master/programs/bpf_loader/src/lib.rs#L457 |
It happens earlier in transaction loading as one can only CPI programs which are present in the transactions account keys: agave/svm/src/transaction_processor.rs Line 368 in 141db09
|
Ah right I for some reason assumed it was loading only the actual program form top level ix - but it is the load account that does that :D |
Problem
@Lichtso repots:
Add a test to demonstrate it.
Proposed Solution
The text was updated successfully, but these errors were encountered: