pub struct NewBlocks {
    pub imported: Vec<H256>,
    pub invalid: Vec<H256>,
    pub route: ChainRoute,
    pub sealed: Vec<H256>,
    pub proposed: Vec<Bytes>,
    pub duration: Duration,
    pub has_more_blocks_to_import: bool,
}
Expand description

Used by ChainNotify new_blocks()

Fields

imported: Vec<H256>

Imported blocks

invalid: Vec<H256>

Invalid blocks

route: ChainRoute

Route

sealed: Vec<H256>

Sealed

proposed: Vec<Bytes>

Block bytes.

duration: Duration

Duration

has_more_blocks_to_import: bool

Has more blocks to import

Implementations

Constructor

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.