forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 284
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
SVM: Dissolve RuntimeConfig
#1590
Merged
buffalojoec
merged 7 commits into
anza-xyz:master
from
buffalojoec:svm-dissolve-runtime-config
Jun 12, 2024
Merged
SVM: Dissolve RuntimeConfig
#1590
buffalojoec
merged 7 commits into
anza-xyz:master
from
buffalojoec:svm-dissolve-runtime-config
Jun 12, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buffalojoec
force-pushed
the
svm-dissolve-runtime-config
branch
from
June 5, 2024 14:29
07a3052
to
2936450
Compare
dmakarov
previously approved these changes
Jun 5, 2024
I just have to sort the Frozen ABI stuff on Bank and Compute Budget for this to pass CI. |
buffalojoec
force-pushed
the
svm-dissolve-runtime-config
branch
from
June 10, 2024 18:13
2936450
to
aac9755
Compare
dmakarov
approved these changes
Jun 12, 2024
samkim-crypto
pushed a commit
to samkim-crypto/agave
that referenced
this pull request
Jul 31, 2024
* SVM: add `compute_budget` to processing config * bank: add `compute_budget` field * SVM: add `transaction_account_lock_limit` to processing config * bank: add `transaction_account_lock_limit` field * bank: drop `runtime_config` getter * SVM: require `compute_budget` for `prepare_program_cache_for_upcoming_feature_set` * SVM: drop `runtime_config` from batch processor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The transaction batch processor requires a global configuration for
RuntimeConfig
-a small configuration object for transaction processing behavior.
Since the batch processor already uses a
TransactionProcessingConfig
for adjustingruntime behavior, it's redundant to also include some configurations in the batch
processor itself globally.
The
log_messages_byte_limit
config inRuntimeConfig
is also not used, since it'salso provided in
TransactionProcessingConfig
.Summary of Changes
First refactor
Bank
to storecompute_budget
andtransaction_account_lock_limit
outside of SVM.
Then, add
compute_budget
andtransaction_account_lock_limit
to the batchprocessor's
TransactionProcessingConfig
.Finally, drop
RuntimeConfig
from the batch processor's global configurations.