Skip to main content

CheckShardSegmentsChainInfo

Trait CheckShardSegmentsChainInfo 

Source
pub trait CheckShardSegmentsChainInfo: DeriveSuperSegmentForBlockChainInfo {
    // Required method
    fn shard_max_local_segment_index(
        &self,
        shard_index: ShardIndex,
    ) -> Option<LocalSegmentIndex>;
}
Expand description

Chain info for check_shard_segments().

Must have access to enough parent blocks.

Required Methods§

Source

fn shard_max_local_segment_index( &self, shard_index: ShardIndex, ) -> Option<LocalSegmentIndex>

Returns the highest local segment index of a shard that was included in super segments

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> CheckShardSegmentsChainInfo for T
where T: BeaconChainInfo,