[][src]Struct beacon::Executive

pub struct Executive<'state, 'config, C: Config> { /* fields omitted */ }

Beacon state executive.

Methods

impl<'state, 'config, C: Config> Executive<'state, 'config, C>[src]

pub fn update_cache(&mut self)[src]

Update state cache.

impl<'state, 'config, C: Config> Executive<'state, 'config, C>[src]

pub fn process_block_header(&mut self, block: &BeaconBlock) -> Result<(), Error>[src]

Process a block header.

pub fn process_randao(&mut self, block: &BeaconBlock) -> Result<(), Error>[src]

Process randao information given in a block.

pub fn process_eth1_data(&mut self, block: &BeaconBlock)[src]

Process eth1 data vote given in a block.

pub fn push_proposer_slashing(
    &mut self,
    proposer_slashing: ProposerSlashing
) -> Result<(), Error>
[src]

Push a new ProposerSlashing to the state.

pub fn push_attester_slashing(
    &mut self,
    attester_slashing: AttesterSlashing
) -> Result<(), Error>
[src]

Push a new AttesterSlashing to the state.

pub fn push_attestation(
    &mut self,
    attestation: Attestation
) -> Result<(), Error>
[src]

Push a new Attestation to the state.

pub fn push_deposit(&mut self, deposit: Deposit) -> Result<(), Error>[src]

Push a new Deposit to the state.

pub fn push_voluntary_exit(&mut self, exit: VoluntaryExit) -> Result<(), Error>[src]

Push a new VoluntaryExit to the state.

pub fn push_transfer(&mut self, transfer: Transfer) -> Result<(), Error>[src]

Push a new Transfer to the state.

impl<'state, 'config, C: Config> Executive<'state, 'config, C>[src]

pub fn update_justification_and_finalization(&mut self) -> Result<(), Error>[src]

Update casper justification and finalization.

Update crosslink data in state.

pub fn update_eth1_period(&mut self)[src]

Update voting period for eth1.

pub fn update_rewards(&mut self) -> Result<(), Error>[src]

Update validator rewards.

pub fn update_ejections(&mut self)[src]

Update validator ejections.

pub fn update_registry_and_shuffling_data(&mut self) -> Result<(), Error>[src]

Update validator registry and shuffling data.

pub fn update_slashings(&mut self)[src]

Update validator slashings.

pub fn update_exit_queue(&mut self)[src]

Process the exit queue.

pub fn update_finalize(&mut self) -> Result<(), Error>[src]

Finalize per-epoch update.

impl<'state, 'config, C: Config> Executive<'state, 'config, C>[src]

pub fn advance_slot(&mut self)[src]

Advance state slot.

impl<'state, 'config, C: Config> Executive<'state, 'config, C>[src]

pub fn new(state: &'state mut BeaconState, config: &'config C) -> Self[src]

Create a new executive from given state and config.

pub fn state(&self) -> &BeaconState[src]

Get a reference to the underlying state.

pub fn config(&self) -> &C[src]

Get a reference to the config.

Auto Trait Implementations

impl<'state, 'config, C> Send for Executive<'state, 'config, C> where
    C: Sync

impl<'state, 'config, C> Sync for Executive<'state, 'config, C> where
    C: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.