runtime-api: add validation_code_hash API (#4629)

This is the first step to close
https://github.com/paritytech/polkadot/issues/4524
This commit is contained in:
Sergei Shulepov authored and GitHub committed 2021-12-28 20:16:03 +00:00
1 parent b49291dc76
commit 91aff5d341
13 files changed
+153

No files matched your search

@@ -673,6 +673,13 @@ pub enum RuntimeApiRequest {
SubmitPvfCheckStatement(PvfCheckStatement, ValidatorSignature, RuntimeApiSender<()>),
/// Returns code hashes of PVFs that require pre-checking by validators in the active set.
PvfsRequirePrecheck(RuntimeApiSender<Vec<ValidationCodeHash>>),
/// Get the validation code used by the specified para, taking the given `OccupiedCoreAssumption`, which
/// will inform on how the validation data should be computed if the para currently occupies a core.
ValidationCodeHash(
ParaId,
OccupiedCoreAssumption,
RuntimeApiSender<Option<ValidationCodeHash>>,
),
}
/// A message to the Runtime API subsystem.