[][src]Struct beacon_chain::CheckPoint

pub struct CheckPoint<E: EthSpec> {
    pub beacon_block: BeaconBlock<E>,
    pub beacon_block_root: Hash256,
    pub beacon_state: BeaconState<E>,
    pub beacon_state_root: Hash256,

Represents some block and it's associated state. Generally, this will be used for tracking the head, justified head and finalized head.


beacon_block: BeaconBlock<E>beacon_block_root: Hash256beacon_state: BeaconState<E>beacon_state_root: Hash256


impl<E: EthSpec> CheckPoint<E>[src]

pub fn new(
    beacon_block: BeaconBlock<E>,
    beacon_block_root: Hash256,
    beacon_state: BeaconState<E>,
    beacon_state_root: Hash256
) -> Self

Create a new checkpoint.

pub fn update(
    &mut self,
    beacon_block: BeaconBlock<E>,
    beacon_block_root: Hash256,
    beacon_state: BeaconState<E>,
    beacon_state_root: Hash256

Update all fields of the checkpoint.

Trait Implementations

impl<E: Clone + EthSpec> Clone for CheckPoint<E>[src]

impl<E: PartialEq + EthSpec> PartialEq<CheckPoint<E>> for CheckPoint<E>[src]

impl<E: Debug + EthSpec> Debug for CheckPoint<E>[src]

impl<E: EthSpec> Decode for CheckPoint<E>[src]

impl<E: EthSpec> Encode for CheckPoint<E>[src]

impl<E: EthSpec> Serialize for CheckPoint<E> where
    E: Serialize

Auto Trait Implementations

impl<E> Send for CheckPoint<E> where
    <E as EthSpec>::EpochsPerHistoricalVector: Send,
    <E as EthSpec>::EpochsPerSlashingsVector: Send,
    <E as EthSpec>::HistoricalRootsLimit: Send,
    <E as EthSpec>::JustificationBitsLength: Send,
    <E as EthSpec>::MaxAttestations: Send,
    <E as EthSpec>::MaxAttesterSlashings: Send,
    <E as EthSpec>::MaxDeposits: Send,
    <E as EthSpec>::MaxPendingAttestations: Send,
    <E as EthSpec>::MaxProposerSlashings: Send,
    <E as EthSpec>::MaxTransfers: Send,
    <E as EthSpec>::MaxValidatorsPerCommittee: Send,
    <E as EthSpec>::MaxVoluntaryExits: Send,
    <E as EthSpec>::ShardCount: Send,
    <E as EthSpec>::SlotsPerEth1VotingPeriod: Send,
    <E as EthSpec>::SlotsPerHistoricalRoot: Send,
    <E as EthSpec>::ValidatorRegistryLimit: Send

impl<E> Unpin for CheckPoint<E> where
    <E as EthSpec>::EpochsPerHistoricalVector: Unpin,
    <E as EthSpec>::EpochsPerSlashingsVector: Unpin,
    <E as EthSpec>::HistoricalRootsLimit: Unpin,
    <E as EthSpec>::JustificationBitsLength: Unpin,
    <E as EthSpec>::MaxAttestations: Unpin,
    <E as EthSpec>::MaxAttesterSlashings: Unpin,
    <E as EthSpec>::MaxDeposits: Unpin,
    <E as EthSpec>::MaxPendingAttestations: Unpin,
    <E as EthSpec>::MaxProposerSlashings: Unpin,
    <E as EthSpec>::MaxTransfers: Unpin,
    <E as EthSpec>::MaxValidatorsPerCommittee: Unpin,
    <E as EthSpec>::MaxVoluntaryExits: Unpin,
    <E as EthSpec>::ShardCount: Unpin,
    <E as EthSpec>::SlotsPerEth1VotingPeriod: Unpin,
    <E as EthSpec>::SlotsPerHistoricalRoot: Unpin,
    <E as EthSpec>::ValidatorRegistryLimit: Unpin

impl<E> Sync for CheckPoint<E> where
    <E as EthSpec>::EpochsPerHistoricalVector: Sync,
    <E as EthSpec>::EpochsPerSlashingsVector: Sync,
    <E as EthSpec>::HistoricalRootsLimit: Sync,
    <E as EthSpec>::JustificationBitsLength: Sync,
    <E as EthSpec>::MaxAttestations: Sync,
    <E as EthSpec>::MaxAttesterSlashings: Sync,
    <E as EthSpec>::MaxDeposits: Sync,
    <E as EthSpec>::MaxPendingAttestations: Sync,
    <E as EthSpec>::MaxProposerSlashings: Sync,
    <E as EthSpec>::MaxTransfers: Sync,
    <E as EthSpec>::MaxValidatorsPerCommittee: Sync,
    <E as EthSpec>::MaxVoluntaryExits: Sync,
    <E as EthSpec>::ShardCount: Sync,
    <E as EthSpec>::SlotsPerEth1VotingPeriod: Sync,
    <E as EthSpec>::SlotsPerHistoricalRoot: Sync,
    <E as EthSpec>::ValidatorRegistryLimit: Sync

impl<E> UnwindSafe for CheckPoint<E> where
    <E as EthSpec>::EpochsPerHistoricalVector: UnwindSafe,
    <E as EthSpec>::EpochsPerSlashingsVector: UnwindSafe,
    <E as EthSpec>::HistoricalRootsLimit: UnwindSafe,
    <E as EthSpec>::JustificationBitsLength: UnwindSafe,
    <E as EthSpec>::MaxAttestations: UnwindSafe,
    <E as EthSpec>::MaxAttesterSlashings: UnwindSafe,
    <E as EthSpec>::MaxDeposits: UnwindSafe,
    <E as EthSpec>::MaxPendingAttestations: UnwindSafe,
    <E as EthSpec>::MaxProposerSlashings: UnwindSafe,
    <E as EthSpec>::MaxTransfers: UnwindSafe,
    <E as EthSpec>::MaxValidatorsPerCommittee: UnwindSafe,
    <E as EthSpec>::MaxVoluntaryExits: UnwindSafe,
    <E as EthSpec>::ShardCount: UnwindSafe,
    <E as EthSpec>::SlotsPerEth1VotingPeriod: UnwindSafe,
    <E as EthSpec>::SlotsPerHistoricalRoot: UnwindSafe,
    <E as EthSpec>::ValidatorRegistryLimit: UnwindSafe

impl<E> RefUnwindSafe for CheckPoint<E> where
    <E as EthSpec>::EpochsPerHistoricalVector: RefUnwindSafe,
    <E as EthSpec>::EpochsPerSlashingsVector: RefUnwindSafe,
    <E as EthSpec>::HistoricalRootsLimit: RefUnwindSafe,
    <E as EthSpec>::JustificationBitsLength: RefUnwindSafe,
    <E as EthSpec>::MaxAttestations: RefUnwindSafe,
    <E as EthSpec>::MaxAttesterSlashings: RefUnwindSafe,
    <E as EthSpec>::MaxDeposits: RefUnwindSafe,
    <E as EthSpec>::MaxPendingAttestations: RefUnwindSafe,
    <E as EthSpec>::MaxProposerSlashings: RefUnwindSafe,
    <E as EthSpec>::MaxTransfers: RefUnwindSafe,
    <E as EthSpec>::MaxValidatorsPerCommittee: RefUnwindSafe,
    <E as EthSpec>::MaxVoluntaryExits: RefUnwindSafe,
    <E as EthSpec>::ShardCount: RefUnwindSafe,
    <E as EthSpec>::SlotsPerEth1VotingPeriod: RefUnwindSafe,
    <E as EthSpec>::SlotsPerHistoricalRoot: RefUnwindSafe,
    <E as EthSpec>::ValidatorRegistryLimit: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Borrow<T> for T where
    T: ?Sized

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Erased for T