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

SVM: Dissolve RuntimeConfig #1590

Merged
merged 7 commits into from
Jun 12, 2024

Conversation

buffalojoec
Copy link

@buffalojoec buffalojoec commented Jun 4, 2024

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 adjusting
runtime behavior, it's redundant to also include some configurations in the batch
processor itself globally.

The log_messages_byte_limit config in RuntimeConfig is also not used, since it's
also provided in TransactionProcessingConfig.

Summary of Changes

First refactor Bank to store compute_budget and transaction_account_lock_limit
outside of SVM.

Then, add compute_budget and transaction_account_lock_limit to the batch
processor's TransactionProcessingConfig.

Finally, drop RuntimeConfig from the batch processor's global configurations.

@buffalojoec buffalojoec marked this pull request as ready for review June 4, 2024 17:28
@buffalojoec
Copy link
Author

@pgarg66 @LucasSte @dmakarov In a follow-up PR, RuntimeConfig can likely be factored out of the codebase completely.

@buffalojoec buffalojoec force-pushed the svm-dissolve-runtime-config branch from 07a3052 to 2936450 Compare June 5, 2024 14:29
dmakarov
dmakarov previously approved these changes Jun 5, 2024
@buffalojoec
Copy link
Author

I just have to sort the Frozen ABI stuff on Bank and Compute Budget for this to pass CI.

@buffalojoec
Copy link
Author

@dmakarov Rebased on top of #1653, which should solve the frozen ABI CI error.

@buffalojoec buffalojoec merged commit ecf7252 into anza-xyz:master Jun 12, 2024
40 checks passed
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants