mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 06:27:58 +00:00
try-runtime: Use configured wasm execution method (#13694)
* try-runtime: Use configured wasm execution method * Fix compilation
This commit is contained in:
@@ -133,7 +133,6 @@
|
||||
//! given the right flag:
|
||||
//!
|
||||
//! ```ignore
|
||||
//!
|
||||
//! #[cfg(feature = "try-runtime")]
|
||||
//! fn pre_upgrade() -> Result<Vec<u8>, &'static str> {}
|
||||
//!
|
||||
@@ -365,8 +364,9 @@ use remote_externalities::{
|
||||
TestExternalities,
|
||||
};
|
||||
use sc_cli::{
|
||||
CliConfiguration, RuntimeVersion, WasmExecutionMethod, WasmtimeInstantiationStrategy,
|
||||
DEFAULT_WASMTIME_INSTANTIATION_STRATEGY, DEFAULT_WASM_EXECUTION_METHOD,
|
||||
execution_method_from_cli, CliConfiguration, RuntimeVersion, WasmExecutionMethod,
|
||||
WasmtimeInstantiationStrategy, DEFAULT_WASMTIME_INSTANTIATION_STRATEGY,
|
||||
DEFAULT_WASM_EXECUTION_METHOD,
|
||||
};
|
||||
use sc_executor::{sp_wasm_interface::HostFunctions, WasmExecutor};
|
||||
use sp_api::HashT;
|
||||
@@ -831,7 +831,7 @@ pub(crate) fn build_executor<H: HostFunctions>(shared: &SharedParams) -> WasmExe
|
||||
let runtime_cache_size = 2;
|
||||
|
||||
WasmExecutor::new(
|
||||
sc_executor::WasmExecutionMethod::Interpreted,
|
||||
execution_method_from_cli(shared.wasm_method, shared.wasmtime_instantiation_strategy),
|
||||
heap_pages,
|
||||
max_runtime_instances,
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user