pub struct GenesisData {
    pub genesis_prev: BlockHeaderHash,
    pub epoch_stability_depth: usize,
    pub start_time: SystemTime,
    pub slot_duration: Duration,
    pub protocol_magic: ProtocolMagic,
    pub fee_policy: LinearFee,
    pub avvm_distr: BTreeMap<PublicKey<Ed25519>, Coin>,
    pub non_avvm_balances: BTreeMap<ByronAddress, Coin>,
    pub boot_stakeholders: BTreeMap<StakeholderId, BootStakeholder>,
}
Expand description

A subset of the genesis data. The genesis data is a JSON file whose canonicalized form has the hash ‘genesis_prev’, which is the parent of the genesis block of epoch 0. (Note that “genesis data” is something completely different from a epoch genesis block. The genesis data is not stored in the chain as a block.)

Fields

genesis_prev: BlockHeaderHashepoch_stability_depth: usizestart_time: SystemTimeslot_duration: Durationprotocol_magic: ProtocolMagicfee_policy: LinearFeeavvm_distr: BTreeMap<PublicKey<Ed25519>, Coin>non_avvm_balances: BTreeMap<ByronAddress, Coin>boot_stakeholders: BTreeMap<StakeholderId, BootStakeholder>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.