StateDB

Trait StateDB 

pub trait StateDB: Database {
    // Required method
    fn set_state_clear_flag(&mut self, has_state_clear: bool);
}
Available on crate feature evm only.
Expand description

A type which has the state of the blockchain.

This trait encapsulates some of the functionality found in State

Required Methods§

fn set_state_clear_flag(&mut self, has_state_clear: bool)

State clear EIP-161 is enabled in Spurious Dragon hardfork.

Implementations on Foreign Types§

§

impl<T> StateDB for &mut T
where T: StateDB,

auto_impl unable to reconcile return associated type from supertrait

§

fn set_state_clear_flag(&mut self, has_state_clear: bool)

Implementors§

§

impl<DB> StateDB for State<DB>
where DB: Database,