test-validator: Add --max-compute-units
flag (#24130)
* test-validator: Add `--max-compute-units` flag * Add `RuntimeConfig` for tweaking runtime behavior * Actually add the file * Move RuntimeConfig to runtime
This commit is contained in:
@ -44,6 +44,7 @@ mod pubkey_bins;
|
||||
mod read_only_accounts_cache;
|
||||
pub mod rent_collector;
|
||||
mod rolling_bit_field;
|
||||
pub mod runtime_config;
|
||||
pub mod secondary_index;
|
||||
pub mod serde_snapshot;
|
||||
mod shared_buffer_reader;
|
||||
|
9
runtime/src/runtime_config.rs
Normal file
9
runtime/src/runtime_config.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use {solana_program_runtime::compute_budget::ComputeBudget, solana_sdk::clock::Slot};
|
||||
|
||||
/// Encapsulates flags that can be used to tweak the runtime behavior.
|
||||
#[derive(Default, Clone)]
|
||||
pub struct RuntimeConfig {
|
||||
pub bpf_jit: bool,
|
||||
pub dev_halt_at_slot: Option<Slot>,
|
||||
pub compute_budget: Option<ComputeBudget>,
|
||||
}
|
Reference in New Issue
Block a user