Struct sputnikvm::Runtime
[−]
[src]
pub struct Runtime { pub blockhash_state: BlockhashState, pub block: HeaderParams, pub context_history_hooks: Vec<Box<Fn(&Context)>>, }
A VM runtime. Only available in eval.
Fields
blockhash_state: BlockhashState
The current blockhash commitment states.
block: HeaderParams
Block header.
context_history_hooks: Vec<Box<Fn(&Context)>>
Hooks for context history.
Methods
impl Runtime
[src]
fn new(block: HeaderParams) -> Self
[src]
Create a new VM runtime.
fn with_states(block: HeaderParams, blockhash_state: BlockhashState) -> Self
[src]
Create the runtime with the given blockhash state.