mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
* 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:
@@ -60,6 +60,9 @@ pub enum Subcommand {
|
||||
#[allow(missing_docs)]
|
||||
#[derive(Debug, StructOpt)]
|
||||
pub struct ValidationWorkerCommand {
|
||||
/// The path that the executor can use for it's caching purposes.
|
||||
pub cache_base_path: Option<std::path::PathBuf>,
|
||||
|
||||
#[allow(missing_docs)]
|
||||
pub mem_id: String,
|
||||
}
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user