/// Determine how many DKG dealings are allowed in a single block by obtaining
/// this value from the registry.
Determine how many DKG dealings are allowed in a single block by obtaining
this value from the registry.
Determine how many DKG dealings are allowed in a single block by obtaining this value from the registry .
fn dkg_dealings_per_block(
    registry_client: &dyn RegistryClient,
    version: RegistryVersion,
    subnet_id: SubnetId,
) -> Result<usize, String> {
    registry_client
        .get_dkg_dealings_per_block(subnet_id, version)
        .map_err(|err| format!("Registry error: {:?}", err))?
        .ok_or(format!(
            "No subnet record found for registry version={:?} and subnet_id={:?}",
            version, subnet_id,
        ))
}
fn dkg_dealings_per_block ( registry_client : & dyn RegistryClient , version : RegistryVersion , subnet_id : SubnetId , ) -> Result < usize , String > { registry_client . get_dkg_dealings_per_block ( subnet_id , version ) . map_err ( | err | format ! ( " " err ) ) ? . ok_or ( format ! ( " " version subnet_id ) ) }
Determine how many DKG dealings are allowed in a single block by obtaining
this value from the registry.
Determine how many DKG dealings are allowed in a single block by obtaining this value from the registry .
registry_client
&dyn RegistryClient
version
RegistryVersion
subnet_id
SubnetId