mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
refactor(sc-executor): use wasm executor builder instead of old apis (#13740)
* refactor: use builder api for all executors * improve a lot * remove unused args * cleanup deps * fix inconsistency about heap alloc * add `heap_pages` back to try-runtime * fix * chore: reduce duplicated code for sc-service-test * cleanup code * fmt * improve test executor * improve * use #[deprecated] * set runtime_cache_size: 4 * fix and improve * refactor builder * fix * fix bench * fix tests * fix warnings * fix warnings * fix * fix * update by suggestions * update name
This commit is contained in:
@@ -20,7 +20,7 @@ use codec::{Decode as _, Encode as _};
|
||||
use sc_executor_common::{
|
||||
error::Error,
|
||||
runtime_blob::RuntimeBlob,
|
||||
wasm_runtime::{HeapAllocStrategy, WasmModule},
|
||||
wasm_runtime::{HeapAllocStrategy, WasmModule, DEFAULT_HEAP_ALLOC_STRATEGY},
|
||||
};
|
||||
use sc_runtime_test::wasm_binary_unwrap;
|
||||
|
||||
@@ -93,7 +93,7 @@ impl RuntimeBuilder {
|
||||
instantiation_strategy,
|
||||
canonicalize_nans: false,
|
||||
deterministic_stack: false,
|
||||
heap_pages: HeapAllocStrategy::Static { extra_pages: 1024 },
|
||||
heap_pages: DEFAULT_HEAP_ALLOC_STRATEGY,
|
||||
precompile_runtime: false,
|
||||
tmpdir: None,
|
||||
}
|
||||
@@ -477,7 +477,7 @@ fn test_instances_without_reuse_are_not_leaked() {
|
||||
deterministic_stack_limit: None,
|
||||
canonicalize_nans: false,
|
||||
parallel_compilation: true,
|
||||
heap_alloc_strategy: HeapAllocStrategy::Static { extra_pages: 2048 },
|
||||
heap_alloc_strategy: DEFAULT_HEAP_ALLOC_STRATEGY,
|
||||
wasm_multi_value: false,
|
||||
wasm_bulk_memory: false,
|
||||
wasm_reference_types: false,
|
||||
|
||||
Reference in New Issue
Block a user