pub struct SyncSection {
pub max_concurrent_block_requests: usize,
}

Sync configuration section.

## Fields

max_concurrent_block_requests: usize

The maximum number of concurrent block requests during sync.

This is set to a low value by default, to avoid task and network contention. Increasing this value may improve performance on machines with many cores and a fast network connection.

lookahead_limit: usize

Controls how far ahead of the chain tip the syncer tries to download before waiting for queued verifications to complete.

Increasing this limit increases the buffer size, so it reduces the impact of an individual block request failing. The block size limit is 2MB, so in theory, this could represent multiple gigabytes of data, if we downloaded arbitrary blocks. However, because we randomly load balance outbound requests, and separate block download from obtaining block hashes, an adversary would have to control a significant fraction of our peers to lead us astray.

This value is clamped to an implementation-defined lower bound.

## Blanket Implementations

### impl<T> Pointable for T

#### type Init = T

The type for initializers.

### impl<T> Same<T> for T

#### type Output = T

Should always be Self

### impl<T> ToOwned for T where    T: Clone, [src]

#### type Owned = T

The resulting type after obtaining ownership.

### impl<T, U> TryFrom<U> for T where    U: Into<T>, [src]

#### type Error = Infallible

The type returned in the event of a conversion error.

### impl<T, U> TryInto<U> for T where    U: TryFrom<T>, [src]

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.