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: BlockHeightRelated 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 duplicate 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 Freeze for PendingSyncConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more