zebra_chain/chain_sync_status.rs
1//! Defines method signatures for checking if the synchronizer is likely close to the network chain tip.
2
3#[cfg(any(test, feature = "proptest-impl"))]
4pub mod mock;
5
6#[cfg(any(test, feature = "proptest-impl"))]
7pub use mock::MockSyncStatus;
8
9/// An interface for checking if the synchronization is likely close to the network chain tip.
10pub trait ChainSyncStatus {
11 /// Check if the synchronization is likely close to the network chain tip.
12 fn is_close_to_tip(&self) -> bool;
13}