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
engine: Arc<EthEngine>
The consensus engine this is built on.
genesis_block: Bytes
The chain's genesis block.
pruning: Algorithm
State pruning algorithm.
restoration_db_handler: Box<KeyValueDBHandler>
Handler for opening a restoration DB.
channel: Channel
Async IO channel for sending messages.
snapshot_root: PathBuf
The directory to put snapshots in.
Usually "
db_restore: Arc<DatabaseRestore>
A handle for database restoration.
Trait Implementations
Auto Trait Implementations
impl Send for ServiceParams
impl Send for ServiceParams
impl Sync for ServiceParams
impl Sync for ServiceParams