Trait sp_consensus::SyncOracle 
source · pub trait SyncOracle {
    // Required methods
    fn is_major_syncing(&self) -> bool;
    fn is_offline(&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§
sourcefn is_major_syncing(&self) -> bool
 
fn is_major_syncing(&self) -> bool
Whether the synchronization service is undergoing major sync. Returns true if so.
sourcefn is_offline(&self) -> bool
 
fn is_offline(&self) -> bool
Whether the synchronization service is offline. Returns true if so.