pub trait ConsensusParametersProvider {
// Required method
fn consensus_params_at_version(
&self,
version: &ConsensusParametersVersion,
) -> Result<Arc<ConsensusParameters>>;
}
Expand description
Interface for retrieving the consensus parameters.
Required Methods§
Sourcefn consensus_params_at_version(
&self,
version: &ConsensusParametersVersion,
) -> Result<Arc<ConsensusParameters>>
fn consensus_params_at_version( &self, version: &ConsensusParametersVersion, ) -> Result<Arc<ConsensusParameters>>
Retrieve the consensus parameters for the version
.