mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 19:47:59 +00:00
Make wasm runtime cache size configurable (#10177)
* Make wasm runtime cache size configurable * apply review comments * remove VersionedRuntimeValue * fix compilation * VersionedRuntime: replace clone by Arc * fmt * fix warnings * fix tests compilation * fmt
This commit is contained in:
@@ -360,6 +360,7 @@ mod tests {
|
||||
WasmExecutionMethod::Interpreted,
|
||||
Some(128),
|
||||
1,
|
||||
2,
|
||||
);
|
||||
|
||||
let overrides = crate::client::wasm_override::dummy_overrides();
|
||||
|
||||
@@ -282,6 +282,7 @@ mod tests {
|
||||
WasmExecutionMethod::Interpreted,
|
||||
Some(128),
|
||||
1,
|
||||
2,
|
||||
);
|
||||
let bytes = substrate_test_runtime::wasm_binary_unwrap();
|
||||
let dir = tempfile::tempdir().expect("Create a temporary directory");
|
||||
@@ -295,6 +296,7 @@ mod tests {
|
||||
WasmExecutionMethod::Interpreted,
|
||||
Some(128),
|
||||
1,
|
||||
2,
|
||||
);
|
||||
|
||||
let version = WasmOverride::runtime_version(
|
||||
|
||||
@@ -132,6 +132,8 @@ pub struct Configuration {
|
||||
pub base_path: Option<BasePath>,
|
||||
/// Configuration of the output format that the informant uses.
|
||||
pub informant_output_format: sc_informant::OutputFormat,
|
||||
/// Maximum number of different runtime versions that can be cached.
|
||||
pub runtime_cache_size: u8,
|
||||
}
|
||||
|
||||
/// Type for tasks spawned by the executor.
|
||||
|
||||
Reference in New Issue
Block a user