-
Notifications
You must be signed in to change notification settings - Fork 311
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
Reduce public visibility of compute-budget APIs #4601
base: master
Are you sure you want to change the base?
Conversation
Hey @kevinheavey, 5e669b4 should address your comments in #4606. |
isn't compute budget a protocol implementation detail used to configure the svm, not actually part of the svm? |
alt_bn128_g2_decompress(pub), | ||
) | ||
)] | ||
#[non_exhaustive] | ||
pub struct ComputeBudget { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we leave these fields pub please? LiteSVM lets people overwrite the ComputeBudget fields.
I'm open to being told these fields are quite unstable and we should limit to a subset, since I doubt many users care about overwriting poseidon_cost_coefficient_a
etc
Ideally yes. In present form, the most of the fields are only used internally by SVM, with hardcoded values set in the constructors ( agave/compute-budget/src/compute_budget.rs Line 134 in fa62025
Maybe we should allow the user of SVM to tweak these values, even though in Agave we are not changing most of it. @t-nelson does that align with your thoughts? |
Problem
APIs and structs in
compute-budget
crate can have reduced visibility.Summary of Changes
Update the visibility using feature config.
Fixes #