Trait parity_machine::LiveBlock [−][src]
pub trait LiveBlock: 'static { type Header: Header; fn header(&self) -> &Self::Header; fn uncles(&self) -> &[Self::Header]; }
A "live" block is one which is in the process of the transition. The state of this block can be mutated by arbitrary rules of the state transition function.
Associated Types
Required Methods
fn header(&self) -> &Self::Header
Get a reference to the header.
fn uncles(&self) -> &[Self::Header]
Get a reference to the uncle headers. If the block type doesn't support uncles, return the empty slice.