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§
Sourcetype ChainSpec: EthChainSpec + 'static
type ChainSpec: EthChainSpec + 'static
The chain spec type.
Required Methods§
Sourcefn chain_spec(&self) -> Arc<Self::ChainSpec>
fn chain_spec(&self) -> Arc<Self::ChainSpec>
Get an Arc
to the chainspec.