Enum evm_state::types::BlockVersion[][src]

pub enum BlockVersion {
    InitVersion,
    VersionConsistentHashes,
}

Blocks versions.

Variants

InitVersion

bogous version without transactions roots, ommers = H256::zero, and nonce as scalar.

VersionConsistentHashes

Version with fixed transactions root hashes, ommers and nonce values. All but difficulty/PoW part, should be compatible with ethereum light clients.

Implementations

impl BlockVersion[src]

pub fn activate_spv_compatibility(&mut self)[src]

Trait Implementations

impl Clone for BlockVersion[src]

impl Copy for BlockVersion[src]

impl Debug for BlockVersion[src]

impl Default for BlockVersion[src]

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

impl Eq for BlockVersion[src]

impl From<BlockVersion> for u64[src]

impl Ord for BlockVersion[src]

impl PartialEq<BlockVersion> for BlockVersion[src]

impl PartialOrd<BlockVersion> for BlockVersion[src]

impl Serialize for BlockVersion[src]

impl StructuralEq for BlockVersion[src]

impl StructuralPartialEq for BlockVersion[src]

impl TryFrom<u64> for BlockVersion[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for BlockVersion

impl Send for BlockVersion

impl Sync for BlockVersion

impl Unpin for BlockVersion

impl UnwindSafe for BlockVersion

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]