Trait LocalContextTr
pub trait LocalContextTr {
// Required methods
fn insert_initcodes(&mut self, initcodes: &[Bytes]);
fn get_validated_initcode(&mut self, hash: FixedBytes<32>) -> Option<Bytes>;
fn shared_memory_buffer(&mut self) -> &Rc<RefCell<Vec<u8>>>;
fn clear(&mut self);
}
Expand description
Local context used for caching initcode from Initcode transactions.
Required Methods§
fn insert_initcodes(&mut self, initcodes: &[Bytes])
fn insert_initcodes(&mut self, initcodes: &[Bytes])
Get the local context
fn get_validated_initcode(&mut self, hash: FixedBytes<32>) -> Option<Bytes>
fn get_validated_initcode(&mut self, hash: FixedBytes<32>) -> Option<Bytes>
Get validated initcode by hash. if initcode is not validated it is assumed that validation is going to be performed inside this function.
Interpreter shared memory buffer. A reused memory buffer for calls.
fn clear(&mut self)
fn clear(&mut self)
Clear the local context.