Update wasmtime config to match new version in substrate (#4063)

* Update wasmtime config to match new version

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Chris Sosninandparity-processbot authored and GitHub committed 2021-10-12 15:56:36 +00:00
1 parent 622ffbd808
commit 1af17eed39
2 files changed
+220 -278

No files matched your search

+215 -277
View File
File diff suppressed because it is too large. Load diff
+5 -1
View File
@@ -41,7 +41,10 @@ const CONFIG: Config = Config {
// wasm pages.
//
// Thus let's assume that 32 pages or 2 MiB are used for these needs.
max_memory_pages: Some(2048 + 32),
//
// Note that the memory limit is specified in bytes, so we multiply this value
// by wasm page size -- 64 KiB.
max_memory_size: Some((2048 + 32) * 65536),
heap_pages: 2048,
allow_missing_func_imports: true,
@@ -65,6 +68,7 @@ const CONFIG: Config = Config {
native_stack_max: 256 * 1024 * 1024,
}),
canonicalize_nans: true,
parallel_compilation: true,
},
};