[][src]Struct beacon::MainnetConfig

pub struct MainnetConfig;

Mainnet config.

Trait Implementations

impl Config for MainnetConfig[src]

type Digest = Sha256

Digest hash function.

type MaxValidatorsPerCommittee = U4096

Max validators per committee.

type SlotsPerHistoricalRoot = U8192

Slots per historical root.

type MaxProposerSlashings = U16

Maximum proposer slashings.

type MaxAttesterSlashings = U1

Maximum attester slashings.

type MaxAttestations = U128

Maximum attestations in a given block.

type MaxDeposits = U16

Maximum deposits in a given block.

type MaxVoluntaryExits = U16

Maximum voluntary exists in a given block.

type MaxTransfers = U0

Maximum transfers in a given block.

type HistoricalRootsLimit = U16777216

Limit of historical roots.

type ShardCount = U1024

Shard count.

type SlotsPerEpoch = U64

Slots per epoch.

type SlotsPerEth1VotingPeriod = U1024

Slots per eth1 voting period.

type ValidatorRegistryLimit = U1099511627776

Validator registry limit.

type EpochsPerHistoricalVector = U65536

Epochs per historical vector.

type EpochsPerSlashingsVector = U8192

Epochs per slashings vector.

type MaxAttestationsPerEpoch = Prod<Self::MaxAttestations, Self::SlotsPerEpoch>

Maximum attestations per epoch.

fn shard_count() -> Uint[src]

Shard count.

fn max_validators_per_committee() -> Uint[src]

Maximum indices per attestation.

fn slots_per_epoch() -> Uint[src]

Slots per epoch.

fn slots_per_eth1_voting_period() -> Uint[src]

Slots per eth1 voting period.

fn slots_per_historical_root() -> Uint[src]

Slots per historical root.

fn epochs_per_historical_vector() -> Uint[src]

Epochs per historical vector

fn epochs_per_slashings_vector() -> Uint[src]

Epochs per slashings vector

fn historical_roots_limit() -> Uint[src]

Historical roots limit

fn validator_registry_limit() -> Uint[src]

Validator registry limit

fn max_proposer_slashings() -> Uint[src]

Maximum proposer slashings per block.

fn max_attester_slashings() -> Uint[src]

Maximum attester slashings per block.

fn max_attestations() -> Uint[src]

Maximum attestations per block.

fn max_deposits() -> Uint[src]

Maximum deposits per block.

fn max_voluntary_exits() -> Uint[src]

Maximum voluntary exits per block.

fn max_transfers() -> Uint[src]

Maximum transfers per block.

fn hash<A: AsRef<[u8]>, I: IntoIterator<Item = A>>(inputs: I) -> H256[src]

Hash function.

impl Clone for MainnetConfig[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for MainnetConfig[src]

impl PartialEq<MainnetConfig> for MainnetConfig[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Eq for MainnetConfig[src]

impl Debug for MainnetConfig[src]

impl Serialize for MainnetConfig[src]

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

impl Encode for MainnetConfig[src]

fn encode(&self) -> Vec<u8>[src]

Convert self to an owned vector.

fn using_encoded<R, F>(&self, f: F) -> R where
    F: FnOnce(&[u8]) -> R, 
[src]

Convert self to a slice and then invoke the given closure with it.

impl Decode for MainnetConfig[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> KeyedVec for T where
    T: Codec
[src]

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

type Output = T

Should always be Self