[][src]Struct substrate_service::config::Configuration

pub struct Configuration<C, G: Serialize + DeserializeOwned + BuildStorage> {
    pub impl_name: &'static str,
    pub impl_version: &'static str,
    pub impl_commit: &'static str,
    pub roles: Roles,
    pub transaction_pool: Options,
    pub network: NetworkConfiguration,
    pub keystore_path: String,
    pub database_path: String,
    pub database_cache_size: Option<u32>,
    pub pruning: PruningMode,
    pub keys: Vec<String>,
    pub chain_spec: ChainSpec<G>,
    pub custom: C,
    pub name: String,
    pub execution_strategies: ExecutionStrategies,
    pub rpc_http: Option<SocketAddr>,
    pub rpc_ws: Option<SocketAddr>,
    pub telemetry_endpoints: Option<TelemetryEndpoints>,
    pub default_heap_pages: Option<u64>,
    pub offchain_worker: bool,
    pub force_authoring: bool,
    pub disable_grandpa: bool,

Service configuration.


impl_name: &'static str

Implementation name

impl_version: &'static str

Implementation version

impl_commit: &'static str

Git commit if any.

roles: Roles

Node roles.

transaction_pool: Options

Extrinsic pool configuration.

network: NetworkConfiguration

Network configuration.

keystore_path: String

Path to key files.

database_path: String

Path to the database.

database_cache_size: Option<u32>

Cache Size for internal database in MiB

pruning: PruningMode

Pruning settings.

keys: Vec<String>

Additional key seeds.

chain_spec: ChainSpec<G>

Chain configuration.

custom: C

Custom configuration.

name: String

Node name.

execution_strategies: ExecutionStrategies

Execution strategies.

rpc_http: Option<SocketAddr>

RPC over HTTP binding address. None if disabled.

rpc_ws: Option<SocketAddr>

RPC over Websockets binding address. None if disabled.

telemetry_endpoints: Option<TelemetryEndpoints>

Telemetry service URL. None if disabled.

default_heap_pages: Option<u64>

The default number of 64KB pages to allocate for Wasm execution

offchain_worker: bool

Should offchain workers be executed.

force_authoring: bool

Enable authoring even when offline.

disable_grandpa: bool

Disable GRANDPA when running in validator mode


impl<C: Default, G: Serialize + DeserializeOwned + BuildStorage> Configuration<C, G>[src]

pub fn default_with_spec(chain_spec: ChainSpec<G>) -> Self[src]

Create default config for given chain spec.

pub fn full_version(&self) -> String[src]

Returns full version string of this configuration.

pub fn client_id(&self) -> String[src]

Implementation id and version.

Trait Implementations

impl<C: Clone, G: Clone + Serialize + DeserializeOwned + BuildStorage> Clone for Configuration<C, G>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<C, G> Send for Configuration<C, G> where
    C: Send

impl<C, G> Sync for Configuration<C, G> where
    C: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Erased for T[src]

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Erased for T[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId[src]

Get the TypeId of this object.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized