pub struct VMLimitConfig {Show 21 fields
pub max_gas_burnt: u64,
pub max_gas_burnt_view: u64,
pub max_stack_height: u32,
pub initial_memory_pages: u32,
pub max_memory_pages: u32,
pub registers_memory_limit: u64,
pub max_register_size: u64,
pub max_number_registers: u64,
pub max_number_logs: u64,
pub max_total_log_length: u64,
pub max_total_prepaid_gas: u64,
pub max_actions_per_receipt: u64,
pub max_number_bytes_method_names: u64,
pub max_length_method_name: u64,
pub max_arguments_length: u64,
pub max_length_returned_data: u64,
pub max_contract_size: u64,
pub max_length_storage_key: u64,
pub max_length_storage_value: u64,
pub max_promises_per_function_call_action: u64,
pub max_number_input_data_dependencies: u64,
}Expand description
Describes limits for VM and Runtime.
Fields§
§max_gas_burnt: u64Max amount of gas that can be used, excluding gas attached to promises.
max_gas_burnt_view: u64Max burnt gas per view method.
max_stack_height: u32How tall the stack is allowed to grow?
See https://wiki.parity.io/WebAssembly-StackHeight to find out how the stack frame cost is calculated.
initial_memory_pages: u32The initial number of memory pages. NOTE: It’s not a limiter itself, but it’s a value we use for initial_memory_pages.
max_memory_pages: u32What is the maximal memory pages amount is allowed to have for a contract.
registers_memory_limit: u64Limit of memory used by registers.
max_register_size: u64Maximum number of bytes that can be stored in a single register.
max_number_registers: u64Maximum number of registers that can be used simultaneously.
max_number_logs: u64Maximum number of log entries.
max_total_log_length: u64Maximum total length in bytes of all log messages.
max_total_prepaid_gas: u64Max total prepaid gas for all function call actions per receipt.
max_actions_per_receipt: u64Max number of actions per receipt.
max_number_bytes_method_names: u64Max total length of all method names (including terminating character) for a function call permission access key.
max_length_method_name: u64Max length of any method name (without terminating character).
max_arguments_length: u64Max length of arguments in a function call action.
max_length_returned_data: u64Max length of returned data
max_contract_size: u64Max contract size
max_length_storage_key: u64Max storage key size
max_length_storage_value: u64Max storage value size
max_promises_per_function_call_action: u64Max number of promises that a function call can create
max_number_input_data_dependencies: u64Max number of input data dependencies
Trait Implementations§
Source§impl Clone for VMLimitConfig
impl Clone for VMLimitConfig
Source§fn clone(&self) -> VMLimitConfig
fn clone(&self) -> VMLimitConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more