We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80d2a85 commit 694c947Copy full SHA for 694c947
bins/validator-node/src/wasm_executor.rs
@@ -697,6 +697,13 @@ impl WasmChallengeExecutor {
697
.compile_module(wasm_bytes)
698
.map_err(|e| anyhow::anyhow!("Failed to compile WASM module: {}", e))?;
699
700
+ // Cache the compiled module for later use by call_route
701
+ let module = Arc::new(module);
702
+ {
703
+ let mut cache = self.module_cache.write();
704
+ cache.insert(module_id.to_string(), Arc::clone(&module));
705
+ }
706
+
707
// Note: Don't pass extra host functions - instantiate() already registers all of them
708
let instance_config = InstanceConfig {
709
network_policy: network_policy.clone(),
0 commit comments