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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.