Struct evm_adapters::sputnik::state::ForkedState [−][src]
pub struct ForkedState<'config, S> { /* fields omitted */ }
Expand description
A state that branches off from the shared state and operates according to the following rules:
Reading:
- forked local state takes precedent over shared state: if the storage value is not present in the local state, it queries the shared state.
Writing:
- all memory altering operations will be applied to the local state
Implementations
Create a new forked state with the SharedState
as root state
This will initialize a new, empty substate that will hold all modifications to the
shared_state, so that the shared state remains untouched.
pub fn deconstruct(
self
) -> (impl IntoIterator<Item = Apply<impl IntoIterator<Item = (H256, H256)>>>, impl IntoIterator<Item = Log>)
Trait Implementations
Environmental block hash.
Environmental block number.
Environmental coinbase.
Environmental block timestamp.
Environmental block difficulty.
Environmental block gas limit.
Environmental block base fee.
Auto Trait Implementations
impl<'config, S> !RefUnwindSafe for ForkedState<'config, S>
impl<'config, S> Send for ForkedState<'config, S> where
S: Send + Sync,
impl<'config, S> Sync for ForkedState<'config, S> where
S: Send + Sync,
impl<'config, S> Unpin for ForkedState<'config, S>
impl<'config, S> !UnwindSafe for ForkedState<'config, S>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more