Type Alias BeaconConsensusEngineEvent
pub type BeaconConsensusEngineEvent<N> = ConsensusEngineEvent<N>;
👎Deprecated: Use ConsensusEngineEvent instead
Expand description
Type alias for backwards compat
Aliased Type§
pub enum BeaconConsensusEngineEvent<N> {
ForkchoiceUpdated(ForkchoiceState, ForkchoiceStatus),
ForkBlockAdded(ExecutedBlockWithTrieUpdates<N>, Duration),
BlockReceived(NumHash),
CanonicalBlockAdded(ExecutedBlockWithTrieUpdates<N>, Duration),
CanonicalChainCommitted(Box<SealedHeader<<N as NodePrimitives>::BlockHeader>>, Duration),
InvalidBlock(Box<SealedBlock<<N as NodePrimitives>::Block>>),
LiveSyncProgress(ConsensusEngineLiveSyncProgress),
}
Variants§
ForkchoiceUpdated(ForkchoiceState, ForkchoiceStatus)
The fork choice state was updated, and the current fork choice status
ForkBlockAdded(ExecutedBlockWithTrieUpdates<N>, Duration)
A block was added to the fork chain.
BlockReceived(NumHash)
A new block was received from the consensus engine
CanonicalBlockAdded(ExecutedBlockWithTrieUpdates<N>, Duration)
A block was added to the canonical chain, and the elapsed time validating the block
CanonicalChainCommitted(Box<SealedHeader<<N as NodePrimitives>::BlockHeader>>, Duration)
A canonical chain was committed, and the elapsed time committing the data
InvalidBlock(Box<SealedBlock<<N as NodePrimitives>::Block>>)
The consensus engine processed an invalid block.
LiveSyncProgress(ConsensusEngineLiveSyncProgress)
The consensus engine is involved in live sync, and has specific progress
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes
Size for each variant:
ForkchoiceUpdated
: 97 bytesForkBlockAdded
: 55 bytesBlockReceived
: 47 bytesCanonicalBlockAdded
: 55 bytesCanonicalChainCommitted
: 31 bytesInvalidBlock
: 15 bytesLiveSyncProgress
: 47 bytes