[][src]Trait sc_consensus_aura::SyncOracle

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

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

fn is_major_syncing(&mut self) -> bool

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

fn is_offline(&mut self) -> bool

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

Loading content...

Implementations on Foreign Types

impl SyncOracle for NoNetwork[src]

impl<T> SyncOracle for Arc<T> where
    T: ?Sized,
    &'r T: for<'r> SyncOracle
[src]

Loading content...

Implementors

Loading content...