pub fn extract_domain_runtime_upgrade_code<CClient, CBlock, Block>(
consensus_client: &Arc<CClient>,
consensus_block_hash: CBlock::Hash,
domain_id: DomainId,
) -> Result<Option<Vec<u8>>, Error>where
CClient: ProvideRuntimeApi<CBlock> + HeaderBackend<CBlock>,
CClient::Api: DomainsApi<CBlock, Block::Header>,
CBlock: BlockT,
Block: BlockT,
Expand description
Returns new upgraded runtime if upgraded did happen in the provided consensus block.