pub struct SyncConfig {
    pub max_download_ahead_blocks: usize,
    pub download_old_blocks: bool,
    pub network_id: u64,
    pub subprotocol_name: ProtocolId,
    pub fork_block: Option<(BlockNumber, H256)>,
    pub warp_sync: WarpSync,
    pub eip1559_transition: BlockNumber,
    pub new_transactions_stats_period: u64,
}
Expand description

Sync configuration

Fields

max_download_ahead_blocks: usize

Max blocks to download ahead

download_old_blocks: bool

Enable ancient block download.

network_id: u64

Network ID

subprotocol_name: ProtocolId

Main “eth” subprotocol name.

fork_block: Option<(BlockNumber, H256)>

Fork block to check

warp_sync: WarpSync

Enable snapshot sync

eip1559_transition: BlockNumber

Number of first block where EIP-1559 rules begin. New encoding/decoding block format.

new_transactions_stats_period: u64

Number of blocks for which new transactions will be returned in a result of parity_newTransactionsStats RPC call

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.