Enable wasmtime caching for PVF (companion for #8057) (#2387)

* Wasm caching

* Fix compilation errors

* Rename `cache_path` to `cache_base_path`

* "Update Substrate"

* Fix check-web-wasm build

Co-authored-by: parity-processbot <>
This commit is contained in:
Sergei Shulepov
2021-02-09 19:18:54 +01:00
committed by GitHub
parent 7343c974a2
commit fab68efac5
7 changed files with 421 additions and 317 deletions
+4 -1
View File
@@ -257,7 +257,10 @@ pub fn run() -> Result<()> {
Err(sc_cli::Error::Input("Cannot run validation worker in browser".into()).into())
} else {
#[cfg(not(any(target_os = "android", feature = "browser")))]
polkadot_parachain::wasm_executor::run_worker(&cmd.mem_id)?;
polkadot_parachain::wasm_executor::run_worker(
&cmd.mem_id,
cmd.cache_base_path.clone(),
)?;
Ok(())
}
},