Struct ethcore::client::ClientConfig
source · [−]pub struct ClientConfig {Show 20 fields
pub queue: QueueConfig,
pub blockchain: BlockChainConfig,
pub tracing: TraceConfig,
pub vm_type: VMType,
pub fat_db: bool,
pub pruning: Algorithm,
pub name: String,
pub db_cache_size: Option<usize>,
pub db_compaction: DatabaseCompactionProfile,
pub mode: Mode,
pub spec_name: String,
pub verifier_type: VerifierType,
pub state_cache_size: usize,
pub jump_table_size: usize,
pub history: u64,
pub history_mem: usize,
pub check_seal: bool,
pub transaction_verification_queue_size: usize,
pub max_round_blocks_to_import: usize,
pub snapshot: SnapshotConfiguration,
}Expand description
Client configuration. Includes configs for all sub-systems.
Fields
queue: QueueConfigBlock queue configuration.
blockchain: BlockChainConfigBlockchain configuration.
tracing: TraceConfigTrace configuration.
vm_type: VMTypeVM type.
fat_db: boolFat DB enabled?
pruning: AlgorithmThe JournalDB (“pruning”) algorithm to use.
name: StringThe name of the client instance.
db_cache_size: Option<usize>RocksDB column cache-size if not default
db_compaction: DatabaseCompactionProfileState db compaction profile
mode: ModeOperating mode
spec_name: StringThe chain spec name
verifier_type: VerifierTypeType of block verifier used by client.
state_cache_size: usizeState db cache-size.
jump_table_size: usizeEVM jump-tables cache size.
history: u64Minimum state pruning history size.
history_mem: usizeIdeal memory usage for state pruning history.
check_seal: boolCheck seal valididity on block import
transaction_verification_queue_size: usizeMaximal number of transactions queued for verification in a separate thread.
max_round_blocks_to_import: usizeMaximal number of blocks to import at each round.
snapshot: SnapshotConfigurationSnapshot configuration
Trait Implementations
sourceimpl Clone for ClientConfig
impl Clone for ClientConfig
sourcefn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ClientConfig
impl Debug for ClientConfig
sourceimpl Default for ClientConfig
impl Default for ClientConfig
sourceimpl PartialEq<ClientConfig> for ClientConfig
impl PartialEq<ClientConfig> for ClientConfig
sourcefn eq(&self, other: &ClientConfig) -> bool
fn eq(&self, other: &ClientConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ClientConfig) -> bool
fn ne(&self, other: &ClientConfig) -> bool
This method tests for !=.
impl StructuralPartialEq for ClientConfig
Auto Trait Implementations
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more