Trait solana_rbpf::vm::ContextObject

source ·
pub trait ContextObject {
    // Required methods
    fn trace(&mut self, state: [u64; 12]);
    fn consume(&mut self, amount: u64);
    fn get_remaining(&self) -> u64;
}
Expand description

Runtime context

Required Methods§

source

fn trace(&mut self, state: [u64; 12])

Called for every instruction executed when tracing is enabled

source

fn consume(&mut self, amount: u64)

Consume instructions from meter

source

fn get_remaining(&self) -> u64

Get the number of remaining instructions allowed

Implementors§