diff --git a/validator/server_jit/spawner.go b/validator/server_jit/spawner.go index 91b1e818f0..476a0170a5 100644 --- a/validator/server_jit/spawner.go +++ b/validator/server_jit/spawner.go @@ -32,8 +32,8 @@ type JitSpawnerConfigFecher func() *JitSpawnerConfig var DefaultJitSpawnerConfig = JitSpawnerConfig{ Workers: 0, Cranelift: true, + WasmMemoryUsageLimit: 4294967296, // 2^32 WASM memory limit MaxExecutionTime: time.Minute * 10, - WasmMemoryUsageLimit: 4294967296, // 2^32 WASM memeory limit } func JitSpawnerConfigAddOptions(prefix string, f *flag.FlagSet) { @@ -87,7 +87,7 @@ func (v *JitSpawner) execute( ) (validator.GoGlobalState, error) { machine, err := v.machineLoader.GetMachine(ctx, moduleRoot) if err != nil { - return validator.GoGlobalState{}, fmt.Errorf("unabled to get WASM machine: %w", err) + return validator.GoGlobalState{}, fmt.Errorf("unable to get WASM machine: %w", err) } state, err := machine.prove(ctx, entry)