Tracking/limiting memory allocator (#1192)

This commit is contained in:
s0me0ne-unkn0wn authored and GitHub committed 2023-11-03 17:48:41 +02:00
1 parent 8cfbee706d
commit cd2d5d2579
19 files changed
+569 -58

No files matched your search

+1 -1
View File
@@ -36,8 +36,8 @@ pub fn validate_candidate(
code: &[u8],
params: &[u8],
) -> Result<Vec<u8>, Box<dyn std::error::Error>> {
use polkadot_node_core_pvf_common::executor_intf::{prepare, prevalidate};
use polkadot_node_core_pvf_execute_worker::execute_artifact;
use polkadot_node_core_pvf_prepare_worker::{prepare, prevalidate};
let code = sp_maybe_compressed_blob::decompress(code, 10 * 1024 * 1024)
.expect("Decompressing code failed");