solana_svm/
runtime_config.rs

1use solana_compute_budget::compute_budget::ComputeBudget;
2
3#[cfg(feature = "frozen-abi")]
4impl ::solana_frozen_abi::abi_example::AbiExample for RuntimeConfig {
5    fn example() -> Self {
6        // RuntimeConfig is not Serialize so just rely on Default.
7        RuntimeConfig::default()
8    }
9}
10
11/// Encapsulates flags that can be used to tweak the runtime behavior.
12#[derive(Debug, Default, Clone)]
13pub struct RuntimeConfig {
14    pub compute_budget: Option<ComputeBudget>,
15    pub log_messages_bytes_limit: Option<usize>,
16    pub transaction_account_lock_limit: Option<usize>,
17}