Struct evm_state::EvmConfig[][src]

pub struct EvmConfig {
    pub executor_config: HardforkConfig,
    pub gas_limit: u64,
    pub chain_id: u64,
    pub force_chain_id: bool,
    pub estimate: bool,
}

Config of evm chain. This type is written to genesis config, and can be updated in future releases

Fields

executor_config: HardforkConfiggas_limit: u64chain_id: u64

Current chain_id.

force_chain_id: bool

If true transactions with chain id = None will be rejected. false can be set if we need support pre eip-155 applications.

estimate: bool

Executor should be called with estimate purposes (count transaction in worst scenario).

Implementations

impl EvmConfig[src]

pub fn new(chain_id: u64) -> EvmConfig[src]

Trait Implementations

impl Clone for EvmConfig[src]

impl Copy for EvmConfig[src]

impl Debug for EvmConfig[src]

impl Default for EvmConfig[src]

impl<'de> Deserialize<'de> for EvmConfig[src]

impl Eq for EvmConfig[src]

impl Ord for EvmConfig[src]

impl PartialEq<EvmConfig> for EvmConfig[src]

impl PartialOrd<EvmConfig> for EvmConfig[src]

impl Serialize for EvmConfig[src]

impl StructuralEq for EvmConfig[src]

impl StructuralPartialEq for EvmConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for EvmConfig

impl Send for EvmConfig

impl Sync for EvmConfig

impl Unpin for EvmConfig

impl UnwindSafe for EvmConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]