Companion for PR 8913 (#3114)

* Companion for PR 8913

polkadot companion: https://github.com/paritytech/substrate/pull/8913

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Sergei Shulepov
2021-06-01 13:03:34 +02:00
committed by GitHub
parent 24d1eb40cc
commit 2239b93d31
6 changed files with 265 additions and 258 deletions
+6 -1
View File
@@ -246,7 +246,12 @@ async fn validate_using_artifact(
let validation_started_at = Instant::now();
let descriptor_bytes =
match crate::executor_intf::execute(compiled_artifact, params, spawner.clone()) {
match unsafe {
// SAFETY: this should be safe since the compiled artifact passed here comes from the
// file created by the prepare workers. These files are obtained by calling
// [`executor_intf::prepare`].
crate::executor_intf::execute(compiled_artifact, params, spawner.clone())
} {
Err(err) => {
return Response::format_invalid("execute", &err.to_string());
}