mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
fix: Explicity use CompilationMode::LazyTranslation
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use std::cell::Cell;
|
||||
use std::fmt;
|
||||
use wasmi::{
|
||||
Config, Engine, Export, Linker, Memory, Module, Store, StoreLimits, StoreLimitsBuilder,
|
||||
TrapCode,
|
||||
CompilationMode, Config, Engine, Export, Linker, Memory, Module, Store, StoreLimits,
|
||||
StoreLimitsBuilder, TrapCode,
|
||||
};
|
||||
use xrpl_host_functions::HostFunctions;
|
||||
|
||||
@@ -262,6 +262,7 @@ pub(crate) fn wasm_engine() -> Engine {
|
||||
// config.wasm_memory64(false);
|
||||
config.wasm_wide_arithmetic(false);
|
||||
config.allow_start_fn(false);
|
||||
config.compilation_mode(CompilationMode::LazyTranslation);
|
||||
Engine::new(&config)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user