Trait sp_consensus::SyncOracle[][src]

pub trait SyncOracle {
    fn is_major_syncing(&mut self) -> bool;
fn is_offline(&mut self) -> bool; }
Expand description

An oracle for when major synchronization work is being undertaken.

Generally, consensus authoring work isn’t undertaken while well behind the head of the chain.

Required methods

Whether the synchronization service is undergoing major sync. Returns true if so.

Whether the synchronization service is offline. Returns true if so.

Implementations on Foreign Types

Implementors