Struct sc_service::config::Configuration  [−][src]
Service configuration.
Fields
impl_name: StringImplementation name
impl_version: StringImplementation version (see sc-cli to see an example of format)
role: RoleNode role.
task_executor: TaskExecutorHow to spawn background tasks. Mandatory, otherwise creating a Service will error.
transaction_pool: TransactionPoolOptionsExtrinsic pool configuration.
network: NetworkConfigurationNetwork configuration.
keystore: KeystoreConfigConfiguration for the keystore.
keystore_remote: Option<String>Remote URI to connect to for async keystore support
database: DatabaseConfigConfiguration for the database.
state_cache_size: usizeSize of internal state cache in Bytes
state_cache_child_ratio: Option<usize>Size in percent of cache size dedicated to child tries
state_pruning: PruningModeState pruning settings.
keep_blocks: KeepBlocksNumber of blocks to keep in the db.
transaction_storage: TransactionStorageModeTransaction storage scheme.
chain_spec: Box<dyn ChainSpec>Chain configuration.
wasm_method: WasmExecutionMethodWasm execution method.
wasm_runtime_overrides: Option<PathBuf>Directory where local WASM runtimes live. These runtimes take precedence
over on-chain runtimes when the spec version matches. Set to None to
disable overrides (default).
execution_strategies: ExecutionStrategiesExecution 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.
rpc_ipc: Option<String>RPC over IPC binding path. None if disabled.
rpc_ws_max_connections: Option<usize>Maximum number of connections for WebSockets RPC server. None if default.
rpc_cors: Option<Vec<String>>CORS settings for HTTP & WS servers. None if all origins are allowed.
rpc_methods: RpcMethodsRPC methods to expose (by default only a safe subset or all of them).
prometheus_config: Option<PrometheusConfig>Prometheus endpoint configuration. None if disabled.
telemetry_endpoints: Option<TelemetryEndpoints>Telemetry service URL. None if disabled.
telemetry_external_transport: Option<ExtTransport>External WASM transport for the telemetry. If Some, when connection to a telemetry
endpoint, this transport will be tried in priority before all others.
telemetry_handle: Option<TelemetryHandle>Telemetry handle.
This is a handle to a TelemetryWorker instance. It is used to initialize the telemetry for
a substrate node.
telemetry_span: Option<TelemetrySpan>Telemetry span.
This span is entered for every background task spawned using the TaskManager.
default_heap_pages: Option<u64>The default number of 64KB pages to allocate for Wasm execution
offchain_worker: OffchainWorkerConfigShould offchain workers be executed.
Enable authoring even when offline.
disable_grandpa: boolDisable GRANDPA when running in validator mode
dev_key_seed: Option<String>Development key seed.
When running in development mode, the seed will be used to generate authority keys by the keystore.
Should only be set when node is running development mode.
tracing_targets: Option<String>Tracing targets
disable_log_reloading: boolIs log filter reloading disabled
tracing_receiver: TracingReceiverTracing receiver
max_runtime_instances: usizeThe size of the instances cache.
The default value is 8.
announce_block: boolAnnounce block automatically after they have been imported
base_path: Option<BasePath>Base path of the configuration
informant_output_format: OutputFormatConfiguration of the output format that the informant uses.
Implementations
impl Configuration[src]
pub fn display_role(&self) -> String[src]
Returns a string displaying the node role.
pub fn prometheus_registry(&self) -> Option<&Registry>[src]
Returns the prometheus metrics registry, if available.
pub fn protocol_id(&self) -> ProtocolId[src]
Returns the network protocol id from the chain spec, or the default.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CheckedConversion for T[src]
pub fn checked_from<T>(t: T) -> Option<Self> where
    Self: TryFrom<T>, [src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
    Self: TryInto<T>, [src]
Self: TryInto<T>,
impl<T> Erased for T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, [src]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
pub fn from_ref(outer: &Outer) -> &T[src]
Get a reference to the inner from the outer.
pub fn from_mut(outer: &mut Outer) -> &mut T[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeDebug for T where
    T: Debug, [src]
T: Debug,
impl<T> MaybeDebug for T where
    T: Debug, [src]
T: Debug,
impl<T> Pointable for T[src]
pub const ALIGN: usize[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T[src]
pub unsafe fn drop(ptr: usize)[src]
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T[src]
pub fn saturated_from<T>(t: T) -> Self where
    Self: UniqueSaturatedFrom<T>, [src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
    Self: UniqueSaturatedInto<T>, [src]
Self: UniqueSaturatedInto<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, [src]
T: UncheckedFrom<S>,
pub fn unchecked_into(self) -> T[src]
impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, [src]
T: Bounded,
S: TryInto<T>,
pub fn unique_saturated_into(self) -> T[src]
impl<V, T> VZip<V> for T where
    V: MultiLane<T>, [src]
V: MultiLane<T>,
impl<T> WithSubscriber for T[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, [src]
S: Into<Dispatch>,