Trait phron_finality::party::traits::ChainState
source · pub trait ChainState {
// Required methods
fn best_block_number(&self) -> BlockNumber;
fn finalized_number(&self) -> BlockNumber;
}
Expand description
Abstraction of the chain state.
Required Methods§
sourcefn best_block_number(&self) -> BlockNumber
fn best_block_number(&self) -> BlockNumber
Returns best block number.
sourcefn finalized_number(&self) -> BlockNumber
fn finalized_number(&self) -> BlockNumber
Returns last finalized block number.