Struct exocore_chain::engine::PendingSyncConfig
source · pub struct PendingSyncConfig {
pub max_operations_per_range: u32,
pub request_tracker_config: RequestTrackerConfig,
pub operations_depth_after_cleanup: BlockHeight,
}
Expand description
Pending synchronizer configuration
Fields§
§max_operations_per_range: u32
§request_tracker_config: RequestTrackerConfig
§operations_depth_after_cleanup: BlockHeight
Related to CommitManagerConfig
.operations_cleanup_after_block_depth
.
This indicates how many blocks after the last cleaned up block we should
include by default when doing sync requests, so that we don’t
request for operations that may have been cleaned up on other nodes.
The CommitManager
does cleanup at interval, and sets the last block
that got cleaned in the SyncState
up from the PendingStore
because it was committed for more than CommitManagerConfig
.
operations_cleanup_after_block_depth
of depth.
This value is added to the SyncState
last cleanup block depth to make
sure we don’t ask or include operations that got cleaned up.
Trait Implementations§
source§impl Clone for PendingSyncConfig
impl Clone for PendingSyncConfig
source§fn clone(&self) -> PendingSyncConfig
fn clone(&self) -> PendingSyncConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PendingSyncConfig
impl Debug for PendingSyncConfig
source§impl Default for PendingSyncConfig
impl Default for PendingSyncConfig
impl Copy for PendingSyncConfig
Auto Trait Implementations§
impl RefUnwindSafe for PendingSyncConfig
impl Send for PendingSyncConfig
impl Sync for PendingSyncConfig
impl Unpin for PendingSyncConfig
impl UnwindSafe for PendingSyncConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more