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.
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
Auto Trait Implementations
impl RefUnwindSafe for Genesis
impl Send for Genesis
impl Sync for Genesis
impl Unpin for Genesis
impl UnwindSafe for Genesis
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more