pub fn derive_super_segments_for_block<BCI>(
chain_info: &BCI,
parent_block_number: BlockNumber,
block_confirmation_depth: BlockNumber,
shard_confirmation_depth: BlockNumber,
) -> Result<Option<SuperSegment>, DeriveSuperSegmentForBlockError>where
BCI: DeriveSuperSegmentsForBlockChainInfo,Expand description
Derive a super segment for a block with a specified parent block number.
For block n shard segment roots of confirmed blocks
n - block_confirmation_depth - shard_confirmation_depth ..= n - block_confirmation_depth are
read (see ConsensusConstants::block_confirmation_depth and
ConsensusConstants::shard_confirmation_depth).