Enum ckb_traits::BlockEpoch[][src]

pub enum BlockEpoch {
    TailBlock {
        epoch: EpochExt,
        epoch_uncles_count: u64,
        epoch_duration_in_milliseconds: u64,
    },
    NonTailBlock {
        epoch: EpochExt,
    },
}
Expand description

Progress of block’s corresponding epoch

Variants

TailBlock

Fields

epoch: EpochExt

epoch information

epoch_uncles_count: u64

epoch uncles count

epoch_duration_in_milliseconds: u64

epoch duration

Block is the tail block of epoch, provides extrat statistics for next epoch generating or verifying

NonTailBlock

Fields

epoch: EpochExt

epoch information

Non tail block of epoch

Implementations

Return block’s corresponding epoch information

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.