Trait sc_consensus_babe::SyncOracle [−][src]
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
pub fn is_major_syncing(&mut self) -> bool
[src][−]
Whether the synchronization service is undergoing major sync. Returns true if so.
pub fn is_offline(&mut self) -> bool
[src][−]
Whether the synchronization service is offline. Returns true if so.
Implementations on Foreign Types
impl<T> SyncOracle for Arc<T> where
T: ?Sized,
&'r T: for<'r> SyncOracle,
[src][−]
T: ?Sized,
&'r T: for<'r> SyncOracle,
pub fn is_major_syncing(&mut self) -> bool
[src]
pub fn is_offline(&mut self) -> bool
[src]
impl SyncOracle for NoNetwork
[src][−]
pub fn is_major_syncing(&mut self) -> bool
[src]
pub fn is_offline(&mut self) -> bool
[src]
Implementors
impl<B: BlockT + 'static, H: ExHashT> SyncOracle for NetworkService<B, H>
impl<B: BlockT + 'static, H: ExHashT> SyncOracle for NetworkService<B, H>
impl<'a, B: BlockT + 'static, H: ExHashT> SyncOracle for &'a NetworkService<B, H>
impl<'a, B: BlockT + 'static, H: ExHashT> SyncOracle for &'a NetworkService<B, H>