Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -38,7 +38,7 @@ codec = { features = ["derive"], workspace = true }
|
||||
|
||||
pezkuwi-node-core-pvf-common = { workspace = true, default-features = true }
|
||||
pezkuwi-node-metrics = { workspace = true, default-features = true }
|
||||
pezkuwi-node-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-pez-node-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-node-subsystem = { workspace = true, default-features = true }
|
||||
pezkuwi-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
|
||||
@@ -92,7 +92,7 @@ runtime-benchmarks = [
|
||||
"pezkuwi-node-core-pvf-prepare-worker?/runtime-benchmarks",
|
||||
"pezkuwi-node-core-pvf/runtime-benchmarks",
|
||||
"pezkuwi-node-metrics/runtime-benchmarks",
|
||||
"pezkuwi-node-primitives/runtime-benchmarks",
|
||||
"pezkuwi-pez-node-primitives/runtime-benchmarks",
|
||||
"pezkuwi-node-subsystem-test-helpers/runtime-benchmarks",
|
||||
"pezkuwi-node-subsystem/runtime-benchmarks",
|
||||
"pezkuwi-primitives/runtime-benchmarks",
|
||||
|
||||
@@ -22,7 +22,7 @@ thiserror = { workspace = true }
|
||||
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
|
||||
pezkuwi-node-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-pez-node-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
|
||||
|
||||
@@ -55,7 +55,7 @@ test-utils = []
|
||||
jemalloc-allocator = []
|
||||
runtime-benchmarks = [
|
||||
"gum/runtime-benchmarks",
|
||||
"pezkuwi-node-primitives/runtime-benchmarks",
|
||||
"pezkuwi-pez-node-primitives/runtime-benchmarks",
|
||||
"pezkuwi-primitives/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
"pezsc-executor-wasmtime/runtime-benchmarks",
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
use crate::{error::InternalValidationError, ArtifactChecksum};
|
||||
use codec::{Decode, Encode};
|
||||
use pezkuwi_node_primitives::PoV;
|
||||
use pezkuwi_pez_node_primitives::PoV;
|
||||
use pezkuwi_primitives::{ExecutorParams, PersistedValidationData};
|
||||
use pezkuwi_teyrchain_primitives::primitives::ValidationResult;
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -22,7 +22,7 @@ nix = { features = ["process", "resource", "sched"], workspace = true }
|
||||
codec = { features = ["derive"], workspace = true }
|
||||
|
||||
pezkuwi-node-core-pvf-common = { workspace = true, default-features = true }
|
||||
pezkuwi-node-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-pez-node-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-primitives = { workspace = true, default-features = true }
|
||||
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
|
||||
|
||||
@@ -33,7 +33,7 @@ builder = []
|
||||
runtime-benchmarks = [
|
||||
"gum/runtime-benchmarks",
|
||||
"pezkuwi-node-core-pvf-common/runtime-benchmarks",
|
||||
"pezkuwi-node-primitives/runtime-benchmarks",
|
||||
"pezkuwi-pez-node-primitives/runtime-benchmarks",
|
||||
"pezkuwi-primitives/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -52,7 +52,7 @@ use pezkuwi_node_core_pvf_common::{
|
||||
},
|
||||
worker_dir, ArtifactChecksum,
|
||||
};
|
||||
use pezkuwi_node_primitives::{BlockData, PoV, POV_BOMB_LIMIT};
|
||||
use pezkuwi_pez_node_primitives::{BlockData, PoV, POV_BOMB_LIMIT};
|
||||
use pezkuwi_primitives::{ExecutorParams, PersistedValidationData};
|
||||
use pezkuwi_teyrchain_primitives::primitives::ValidationResult;
|
||||
use std::{
|
||||
|
||||
@@ -34,7 +34,7 @@ use pezkuwi_node_core_pvf_common::{
|
||||
execute::{JobResponse, WorkerError, WorkerResponse},
|
||||
SecurityStatus,
|
||||
};
|
||||
use pezkuwi_node_primitives::PoV;
|
||||
use pezkuwi_pez_node_primitives::PoV;
|
||||
use pezkuwi_node_subsystem::{messages::PvfExecKind, ActiveLeavesUpdate};
|
||||
use pezkuwi_primitives::{ExecutorParams, ExecutorParamsHash, Hash, PersistedValidationData};
|
||||
use slotmap::HopSlotMap;
|
||||
@@ -908,7 +908,7 @@ impl Unscheduled {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use pezkuwi_node_primitives::BlockData;
|
||||
use pezkuwi_pez_node_primitives::BlockData;
|
||||
use pezkuwi_node_subsystem_test_helpers::mock::new_leaf;
|
||||
use pezsp_core::H256;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ use pezkuwi_node_core_pvf_common::{
|
||||
execute::{Handshake, WorkerError, WorkerResponse},
|
||||
worker_dir, ArtifactChecksum, SecurityStatus,
|
||||
};
|
||||
use pezkuwi_node_primitives::PoV;
|
||||
use pezkuwi_pez_node_primitives::PoV;
|
||||
use pezkuwi_primitives::{ExecutorParams, PersistedValidationData};
|
||||
use std::{path::Path, sync::Arc, time::Duration};
|
||||
use tokio::{io, net::UnixStream};
|
||||
|
||||
@@ -38,7 +38,7 @@ use pezkuwi_node_core_pvf_common::{
|
||||
prepare::PrepareSuccess,
|
||||
pvf::PvfPrepData,
|
||||
};
|
||||
use pezkuwi_node_primitives::PoV;
|
||||
use pezkuwi_pez_node_primitives::PoV;
|
||||
use pezkuwi_node_subsystem::{
|
||||
messages::PvfExecKind, ActiveLeavesUpdate, SubsystemError, SubsystemResult,
|
||||
};
|
||||
@@ -1054,7 +1054,7 @@ pub(crate) mod tests {
|
||||
use crate::{artifacts::generate_artifact_path, testing::artifact_id, PossiblyInvalidError};
|
||||
use assert_matches::assert_matches;
|
||||
use futures::future::BoxFuture;
|
||||
use pezkuwi_node_primitives::BlockData;
|
||||
use pezkuwi_pez_node_primitives::BlockData;
|
||||
use pezsp_core::H256;
|
||||
|
||||
const TEST_EXECUTION_TIMEOUT: Duration = Duration::from_secs(3);
|
||||
|
||||
@@ -24,7 +24,7 @@ pub use crate::{
|
||||
use crate::{artifacts::ArtifactId, get_worker_version};
|
||||
use is_executable::IsExecutable;
|
||||
use pezkuwi_node_core_pvf_common::pvf::PvfPrepData;
|
||||
use pezkuwi_node_primitives::NODE_VERSION;
|
||||
use pezkuwi_pez_node_primitives::NODE_VERSION;
|
||||
use pezkuwi_primitives::ExecutorParams;
|
||||
use std::{
|
||||
path::PathBuf,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
use super::TestHost;
|
||||
use codec::{Decode, Encode};
|
||||
use pezkuwi_node_primitives::PoV;
|
||||
use pezkuwi_pez_node_primitives::PoV;
|
||||
use pezkuwi_primitives::PersistedValidationData;
|
||||
use pezkuwi_teyrchain_primitives::primitives::{
|
||||
BlockData as GenericBlockData, HeadData as GenericHeadData,
|
||||
|
||||
@@ -25,7 +25,7 @@ use pezkuwi_node_core_pvf::{
|
||||
ValidationHost, JOB_TIMEOUT_WALL_CLOCK_FACTOR,
|
||||
};
|
||||
use pezkuwi_node_core_pvf_common::{compute_checksum, ArtifactChecksum};
|
||||
use pezkuwi_node_primitives::{PoV, POV_BOMB_LIMIT};
|
||||
use pezkuwi_pez_node_primitives::{PoV, POV_BOMB_LIMIT};
|
||||
use pezkuwi_node_subsystem::messages::PvfExecKind;
|
||||
use pezkuwi_primitives::{
|
||||
ExecutorParam, ExecutorParams, Hash, PersistedValidationData, PvfExecKind as RuntimePvfExecKind,
|
||||
|
||||
@@ -23,7 +23,7 @@ use codec::Encode;
|
||||
use pezkuwi_node_core_pvf::{
|
||||
InvalidCandidate, PossiblyInvalidError, PrepareError, ValidationError,
|
||||
};
|
||||
use pezkuwi_node_primitives::PoV;
|
||||
use pezkuwi_pez_node_primitives::PoV;
|
||||
use pezkuwi_primitives::PersistedValidationData;
|
||||
use pezkuwi_teyrchain_primitives::primitives::{
|
||||
BlockData as GenericBlockData, HeadData as GenericHeadData,
|
||||
|
||||
Reference in New Issue
Block a user