Trait ChainSpecProvider
pub trait ChainSpecProvider: Send + Sync {
type ChainSpec: EthChainSpec + 'static;
// Required method
fn chain_spec(&self) -> Arc<Self::ChainSpec>;
}
Expand description
A trait for reading the current chainspec.
Required Associated Types§
type ChainSpec: EthChainSpec + 'static
type ChainSpec: EthChainSpec + 'static
The chain spec type.
Required Methods§
fn chain_spec(&self) -> Arc<Self::ChainSpec>
fn chain_spec(&self) -> Arc<Self::ChainSpec>
Get an Arc
to the chainspec.