Struct ethcore::snapshot::service::ServiceParams [] [src]

pub struct ServiceParams {
    pub engine: Arc<EthEngine>,
    pub genesis_block: Bytes,
    pub pruning: Algorithm,
    pub restoration_db_handler: Box<KeyValueDBHandler>,
    pub channel: Channel,
    pub snapshot_root: PathBuf,
    pub db_restore: Arc<DatabaseRestore>,
}

Snapshot service parameters.

Fields

The consensus engine this is built on.

The chain's genesis block.

State pruning algorithm.

Handler for opening a restoration DB.

Async IO channel for sending messages.

The directory to put snapshots in. Usually "/snapshot"

A handle for database restoration.

Trait Implementations

Auto Trait Implementations

impl Send for ServiceParams

impl Sync for ServiceParams