pub struct Genesis {
    pub seal: Seal,
    pub difficulty: U256,
    pub author: Address,
    pub timestamp: u64,
    pub parent_hash: H256,
    pub gas_limit: U256,
    pub transactions_root: H256,
    pub receipts_root: H256,
    pub state_root: Option<H256>,
    pub gas_used: U256,
    pub extra_data: Vec<u8>,
    pub base_fee: Option<U256>,
}
Expand description

Genesis components.

Fields

seal: Seal

Seal.

difficulty: U256

Difficulty.

author: Address

Author.

timestamp: u64

Timestamp.

parent_hash: H256

Parent hash.

gas_limit: U256

Gas limit.

transactions_root: H256

Transactions root.

receipts_root: H256

Receipts root.

state_root: Option<H256>

State root.

gas_used: U256

Gas used.

extra_data: Vec<u8>

Extra data.

base_fee: Option<U256>

Base fee.

Trait Implementations

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.