pub struct Params {
    pub config: SyncConfig,
    pub chain: Arc<dyn BlockChainClient>,
    pub forks: BTreeSet<BlockNumber>,
    pub snapshot_service: Arc<dyn SnapshotService>,
    pub network_config: NetworkConfiguration,
}
Expand description

EthSync initialization parameters.

Fields

config: SyncConfig

Configuration.

chain: Arc<dyn BlockChainClient>

Blockchain client.

forks: BTreeSet<BlockNumber>

Forks.

snapshot_service: Arc<dyn SnapshotService>

Snapshot service.

network_config: NetworkConfiguration

Network layer configuration.

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 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.