pub struct MinimalEthSpec;Expand description
Ethereum Foundation minimal spec, as defined in the eth2.0-specs repo.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for MinimalEthSpec
impl<'arbitrary> Arbitrary<'arbitrary> for MinimalEthSpec
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for MinimalEthSpec
impl Clone for MinimalEthSpec
Source§fn clone(&self) -> MinimalEthSpec
fn clone(&self) -> MinimalEthSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MinimalEthSpec
impl Debug for MinimalEthSpec
Source§impl Default for MinimalEthSpec
impl Default for MinimalEthSpec
Source§fn default() -> MinimalEthSpec
fn default() -> MinimalEthSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MinimalEthSpec
impl<'de> Deserialize<'de> for MinimalEthSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EthSpec for MinimalEthSpec
impl EthSpec for MinimalEthSpec
type SlotsPerEpoch = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>
type EpochsPerEth1VotingPeriod = UInt<UInt<UInt<UTerm, B1>, B0>, B0>
type SlotsPerHistoricalRoot = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>
type EpochsPerHistoricalVector = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>
type EpochsPerSlashingsVector = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>
type SyncCommitteeSize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
Source§type SyncSubcommitteeSize = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>
type SyncSubcommitteeSize = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>
The size of
sync_subcommittees. Read moreSource§type MaxPendingAttestations = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>
type MaxPendingAttestations = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>
The length of the
{previous,current}_epoch_attestations lists. Read moreSource§type SlotsPerEth1VotingPeriod = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
type SlotsPerEth1VotingPeriod = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
The length of
eth1_data_votes. Read moretype MaxWithdrawalsPerPayload = UInt<UInt<UInt<UTerm, B1>, B0>, B0>
type JustificationBitsLength = <MainnetEthSpec as EthSpec>::JustificationBitsLength
type SubnetBitfieldLength = <MainnetEthSpec as EthSpec>::SubnetBitfieldLength
Source§type SyncCommitteeSubnetCount = <MainnetEthSpec as EthSpec>::SyncCommitteeSubnetCount
type SyncCommitteeSubnetCount = <MainnetEthSpec as EthSpec>::SyncCommitteeSubnetCount
The number of
sync_committee subnets.type MaxValidatorsPerCommittee = <MainnetEthSpec as EthSpec>::MaxValidatorsPerCommittee
type GenesisEpoch = <MainnetEthSpec as EthSpec>::GenesisEpoch
type HistoricalRootsLimit = <MainnetEthSpec as EthSpec>::HistoricalRootsLimit
type ValidatorRegistryLimit = <MainnetEthSpec as EthSpec>::ValidatorRegistryLimit
type MaxProposerSlashings = <MainnetEthSpec as EthSpec>::MaxProposerSlashings
type MaxAttesterSlashings = <MainnetEthSpec as EthSpec>::MaxAttesterSlashings
type MaxAttestations = <MainnetEthSpec as EthSpec>::MaxAttestations
type MaxDeposits = <MainnetEthSpec as EthSpec>::MaxDeposits
type MaxVoluntaryExits = <MainnetEthSpec as EthSpec>::MaxVoluntaryExits
type MaxBytesPerTransaction = <MainnetEthSpec as EthSpec>::MaxBytesPerTransaction
type MaxTransactionsPerPayload = <MainnetEthSpec as EthSpec>::MaxTransactionsPerPayload
type BytesPerLogsBloom = <MainnetEthSpec as EthSpec>::BytesPerLogsBloom
type GasLimitDenominator = <MainnetEthSpec as EthSpec>::GasLimitDenominator
type MinGasLimit = <MainnetEthSpec as EthSpec>::MinGasLimit
type MaxExtraDataBytes = <MainnetEthSpec as EthSpec>::MaxExtraDataBytes
type MaxBlsToExecutionChanges = <MainnetEthSpec as EthSpec>::MaxBlsToExecutionChanges
type MaxBlobsPerBlock = <MainnetEthSpec as EthSpec>::MaxBlobsPerBlock
type FieldElementsPerBlob = <MainnetEthSpec as EthSpec>::FieldElementsPerBlob
fn spec_name() -> EthSpecId
Source§fn minimum_validator_count() -> usize
fn minimum_validator_count() -> usize
Returns the minimum number of validators required for this spec. Read more
Source§fn slots_per_epoch() -> u64
fn slots_per_epoch() -> u64
Returns the
SLOTS_PER_EPOCH constant for this specification. Read moreSource§fn slots_per_historical_root() -> usize
fn slots_per_historical_root() -> usize
Returns the
SLOTS_PER_HISTORICAL_ROOT constant for this specification. Read moreSource§fn epochs_per_historical_vector() -> usize
fn epochs_per_historical_vector() -> usize
Returns the
EPOCHS_PER_HISTORICAL_VECTOR constant for this specification. Read moreSource§fn slots_per_eth1_voting_period() -> usize
fn slots_per_eth1_voting_period() -> usize
Returns the
SLOTS_PER_ETH1_VOTING_PERIOD constant for this specification. Read moreSource§fn sync_committee_size() -> usize
fn sync_committee_size() -> usize
Returns the
SYNC_COMMITTEE_SIZE constant for this specification.Source§fn sync_subcommittee_size() -> usize
fn sync_subcommittee_size() -> usize
Returns the
SYNC_COMMITTEE_SIZE / SyncCommitteeSubnetCount.Source§fn max_bytes_per_transaction() -> usize
fn max_bytes_per_transaction() -> usize
Returns the
MAX_BYTES_PER_TRANSACTION constant for this specification.Source§fn max_transactions_per_payload() -> usize
fn max_transactions_per_payload() -> usize
Returns the
MAX_TRANSACTIONS_PER_PAYLOAD constant for this specification.Source§fn max_extra_data_bytes() -> usize
fn max_extra_data_bytes() -> usize
Returns the
MAX_EXTRA_DATA_BYTES constant for this specification.Source§fn bytes_per_logs_bloom() -> usize
fn bytes_per_logs_bloom() -> usize
Returns the
BYTES_PER_LOGS_BLOOM constant for this specification.Source§fn max_bls_to_execution_changes() -> usize
fn max_bls_to_execution_changes() -> usize
Returns the
MAX_BLS_TO_EXECUTION_CHANGES constant for this specification.Source§fn max_withdrawals_per_payload() -> usize
fn max_withdrawals_per_payload() -> usize
Returns the
MAX_WITHDRAWALS_PER_PAYLOAD constant for this specification.Source§fn max_blobs_per_block() -> usize
fn max_blobs_per_block() -> usize
Returns the
MAX_BLOBS_PER_BLOCK constant for this specification.Source§impl PartialEq for MinimalEthSpec
impl PartialEq for MinimalEthSpec
Source§impl Serialize for MinimalEthSpec
impl Serialize for MinimalEthSpec
impl Eq for MinimalEthSpec
impl StructuralPartialEq for MinimalEthSpec
Auto Trait Implementations§
impl Freeze for MinimalEthSpec
impl RefUnwindSafe for MinimalEthSpec
impl Send for MinimalEthSpec
impl Sync for MinimalEthSpec
impl Unpin for MinimalEthSpec
impl UnwindSafe for MinimalEthSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more