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: QueueConfig
Block queue configuration.
blockchain: BlockChainConfig
Blockchain configuration.
tracing: TraceConfig
Trace configuration.
vm_type: VMType
VM type.
fat_db: bool
Fat DB enabled?
pruning: Algorithm
The JournalDB (“pruning”) algorithm to use.
name: String
The name of the client instance.
db_cache_size: Option<usize>
RocksDB column cache-size if not default
db_compaction: DatabaseCompactionProfile
State db compaction profile
mode: Mode
Operating mode
spec_name: String
The chain spec name
verifier_type: VerifierType
Type of block verifier used by client.
state_cache_size: usize
State db cache-size.
jump_table_size: usize
EVM jump-tables cache size.
history: u64
Minimum state pruning history size.
history_mem: usize
Ideal memory usage for state pruning history.
check_seal: bool
Check seal valididity on block import
transaction_verification_queue_size: usize
Maximal number of transactions queued for verification in a separate thread.
max_round_blocks_to_import: usize
Maximal number of blocks to import at each round.
snapshot: SnapshotConfiguration
Snapshot 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