feat: Rebrand Polkadot/Substrate references to PezkuwiChain

This commit systematically rebrands various references from Parity Technologies'
Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk.

Key changes include:
- Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks.
- Modified internal documentation and code comments to reflect PezkuwiChain naming and structure.
- Replaced direct references to  with  or specific paths within the  for XCM, Pezkuwi, and other modules.
- Cleaned up deprecated  issue and PR references in various  and  files, particularly in  and  modules.
- Adjusted image and logo URLs in documentation to point to PezkuwiChain assets.
- Removed or rephrased comments related to external Polkadot/Substrate PRs and issues.

This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
This commit is contained in:
2025-12-14 00:04:10 +03:00
parent e4778b4576
commit 379cb741ed
9082 changed files with 997824 additions and 997542 deletions
+7 -7
View File
@@ -44,9 +44,9 @@ pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
pezkuwi-node-core-pvf-execute-worker = { optional = true, workspace = true, default-features = true }
pezkuwi-node-core-pvf-prepare-worker = { optional = true, workspace = true, default-features = true }
sc-tracing = { workspace = true }
sp-core = { workspace = true, default-features = true }
sp-maybe-compressed-blob = { optional = true, workspace = true, default-features = true }
pezsc-tracing = { workspace = true }
pezsp-core = { workspace = true, default-features = true }
pezsp-maybe-compressed-blob = { optional = true, workspace = true, default-features = true }
[dev-dependencies]
assert_matches = { workspace = true }
@@ -72,7 +72,7 @@ test-teyrchain-halt = { workspace = true }
libc = { workspace = true }
procfs = { workspace = true }
rusty-fork = { workspace = true, default-features = true }
sc-sysinfo = { workspace = true, default-features = true }
pezsc-sysinfo = { workspace = true, default-features = true }
[features]
ci-only-tests = []
@@ -82,7 +82,7 @@ test-utils = [
"dep:is_executable",
"dep:pezkuwi-node-core-pvf-execute-worker",
"dep:pezkuwi-node-core-pvf-prepare-worker",
"dep:sp-maybe-compressed-blob",
"dep:pezsp-maybe-compressed-blob",
]
runtime-benchmarks = [
"gum/runtime-benchmarks",
@@ -97,7 +97,7 @@ runtime-benchmarks = [
"pezkuwi-primitives/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"pezkuwichain-runtime/runtime-benchmarks",
"sc-sysinfo/runtime-benchmarks",
"sc-tracing/runtime-benchmarks",
"pezsc-sysinfo/runtime-benchmarks",
"pezsc-tracing/runtime-benchmarks",
"test-teyrchain-adder/runtime-benchmarks",
]
@@ -65,7 +65,7 @@ impl TestHost {
) -> Result<(), PrepareError> {
let (result_tx, result_rx) = futures::channel::oneshot::channel();
let code = sp_maybe_compressed_blob::decompress(code, 16 * 1024 * 1024)
let code = pezsp_maybe_compressed_blob::decompress(code, 16 * 1024 * 1024)
.expect("Compression works");
self.host
@@ -88,12 +88,12 @@ impl TestHost {
}
fn host_prepare_pezkuwichain_runtime(c: &mut Criterion) {
pezkuwi_node_core_pvf_common::sp_tracing::try_init_simple();
pezkuwi_node_core_pvf_common::pezsp_tracing::try_init_simple();
let rt = tokio::runtime::Runtime::new().unwrap();
let blob = WASM_BINARY.expect("You need to build the WASM binaries to run the tests!");
let pvf = match sp_maybe_compressed_blob::decompress(&blob, 64 * 1024 * 1024) {
let pvf = match pezsp_maybe_compressed_blob::decompress(&blob, 64 * 1024 * 1024) {
Ok(code) => PvfPrepData::from_code(
code.into_owned(),
ExecutorParams::default(),
+11 -11
View File
@@ -25,15 +25,15 @@ pezkuwi-node-primitives = { workspace = true, default-features = true }
pezkuwi-primitives = { workspace = true, default-features = true }
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
sc-executor = { workspace = true, default-features = true }
sc-executor-common = { workspace = true, default-features = true }
sc-executor-wasmtime = { workspace = true, default-features = true }
pezsc-executor = { workspace = true, default-features = true }
pezsc-executor-common = { workspace = true, default-features = true }
pezsc-executor-wasmtime = { workspace = true, default-features = true }
sp-core = { workspace = true, default-features = true }
sp-crypto-hashing = { workspace = true, default-features = true }
sp-externalities = { workspace = true, default-features = true }
sp-io = { workspace = true, default-features = true }
sp-tracing = { workspace = true, default-features = true }
pezsp-core = { workspace = true, default-features = true }
pezsp-crypto-hashing = { workspace = true, default-features = true }
pezsp-externalities = { workspace = true, default-features = true }
pezsp-io = { workspace = true, default-features = true }
pezsp-tracing = { workspace = true, default-features = true }
[target.'cfg(target_os = "linux")'.dependencies]
landlock = { workspace = true }
@@ -57,7 +57,7 @@ runtime-benchmarks = [
"pezkuwi-node-primitives/runtime-benchmarks",
"pezkuwi-primitives/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"sc-executor-wasmtime/runtime-benchmarks",
"sc-executor/runtime-benchmarks",
"sp-io/runtime-benchmarks",
"pezsc-executor-wasmtime/runtime-benchmarks",
"pezsc-executor/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
]
+1 -1
View File
@@ -16,7 +16,7 @@
use crate::prepare::{PrepareSuccess, PrepareWorkerSuccess};
use codec::{Decode, Encode};
pub use sc_executor_common::error::Error as ExecuteError;
pub use pezsc_executor_common::error::Error as ExecuteError;
/// Result of PVF preparation from a worker, with checksum of the compiled PVF and stats of the
/// preparation if successful.
@@ -14,26 +14,26 @@
// You should have received a copy of the GNU General Public License
// along with Pezkuwi. If not, see <http://www.gnu.org/licenses/>.
//! Interface to the Substrate Executor
//! Interface to the Bizinikiwi Executor
use crate::error::ExecuteError;
use pezkuwi_primitives::{
executor_params::{DEFAULT_LOGICAL_STACK_MAX, DEFAULT_NATIVE_STACK_MAX},
ExecutorParam, ExecutorParams,
};
use sc_executor_common::{
use pezsc_executor_common::{
error::WasmError,
runtime_blob::RuntimeBlob,
wasm_runtime::{HeapAllocStrategy, WasmModule as _},
};
use sc_executor_wasmtime::{Config, DeterministicStackLimit, Semantics, WasmtimeRuntime};
use sp_core::storage::{ChildInfo, TrackedStorageKey};
use sp_externalities::MultiRemovalResults;
use pezsc_executor_wasmtime::{Config, DeterministicStackLimit, Semantics, WasmtimeRuntime};
use pezsp_core::storage::{ChildInfo, TrackedStorageKey};
use pezsp_externalities::MultiRemovalResults;
use std::any::{Any, TypeId};
// Memory configuration
//
// When Substrate Runtime is instantiated, a number of WASM pages are allocated for the Substrate
// When Bizinikiwi Runtime is instantiated, a number of WASM pages are allocated for the Bizinikiwi
// Runtime instance's linear memory. The exact number of pages is a sum of whatever the WASM blob
// itself requests (by default at least enough to hold the data section as well as have some space
// left for the stack; this is, of course, overridable at link time when compiling the runtime)
@@ -54,12 +54,12 @@ pub const DEFAULT_CONFIG: Config = Config {
allow_missing_func_imports: true,
cache_path: None,
semantics: Semantics {
heap_alloc_strategy: sc_executor_common::wasm_runtime::HeapAllocStrategy::Dynamic {
heap_alloc_strategy: pezsc_executor_common::wasm_runtime::HeapAllocStrategy::Dynamic {
maximum_pages: Some(DEFAULT_HEAP_PAGES_ESTIMATE + EXTRA_HEAP_PAGES),
},
instantiation_strategy:
sc_executor_wasmtime::InstantiationStrategy::RecreateInstanceCopyOnWrite,
pezsc_executor_wasmtime::InstantiationStrategy::RecreateInstanceCopyOnWrite,
// Enable deterministic stack limit to pin down the exact number of items the wasmtime stack
// can contain before it traps with stack overflow.
@@ -111,13 +111,13 @@ pub unsafe fn execute_artifact(
executor_params: &ExecutorParams,
params: &[u8],
) -> Result<Vec<u8>, ExecuteError> {
let mut extensions = sp_externalities::Extensions::new();
let mut extensions = pezsp_externalities::Extensions::new();
extensions.register(sp_core::traits::ReadRuntimeVersionExt::new(ReadRuntimeVersion));
extensions.register(pezsp_core::traits::ReadRuntimeVersionExt::new(ReadRuntimeVersion));
let mut ext = ValidationExternalities(extensions);
match sc_executor::with_externalities_safe(&mut ext, || {
match pezsc_executor::with_externalities_safe(&mut ext, || {
let runtime = create_runtime_from_artifact_bytes(compiled_artifact_blob, executor_params)?;
runtime.new_instance()?.call("validate_block", params)
}) {
@@ -142,7 +142,7 @@ pub unsafe fn create_runtime_from_artifact_bytes(
let mut config = DEFAULT_CONFIG.clone();
config.semantics = params_to_wasmtime_semantics(executor_params).0;
sc_executor_wasmtime::create_runtime_from_artifact_bytes::<HostFunctions>(
pezsc_executor_wasmtime::create_runtime_from_artifact_bytes::<HostFunctions>(
compiled_artifact_blob,
config,
)
@@ -177,7 +177,7 @@ pub fn params_to_wasmtime_semantics(par: &ExecutorParams) -> (Semantics, Determi
}
/// Runs the prevalidation on the given code. Returns a [`RuntimeBlob`] if it succeeds.
pub fn prevalidate(code: &[u8]) -> Result<RuntimeBlob, sc_executor_common::error::WasmError> {
pub fn prevalidate(code: &[u8]) -> Result<RuntimeBlob, pezsc_executor_common::error::WasmError> {
// Construct the runtime blob and do some basic checks for consistency.
let blob = RuntimeBlob::new(code)?;
// In the future this function should take care of any further prevalidation logic.
@@ -189,9 +189,9 @@ pub fn prevalidate(code: &[u8]) -> Result<RuntimeBlob, sc_executor_common::error
pub fn prepare(
blob: RuntimeBlob,
executor_params: &ExecutorParams,
) -> Result<Vec<u8>, sc_executor_common::error::WasmError> {
) -> Result<Vec<u8>, pezsc_executor_common::error::WasmError> {
let (semantics, _) = params_to_wasmtime_semantics(executor_params);
sc_executor_wasmtime::prepare_runtime_artifact(blob, &semantics)
pezsc_executor_wasmtime::prepare_runtime_artifact(blob, &semantics)
}
/// Available host functions. We leave out:
@@ -202,19 +202,19 @@ pub fn prepare(
/// 4. runtime tasks
/// 5. sandbox
type HostFunctions = (
sp_io::misc::HostFunctions,
sp_io::crypto::HostFunctions,
sp_io::hashing::HostFunctions,
sp_io::allocator::HostFunctions,
sp_io::logging::HostFunctions,
sp_io::trie::HostFunctions,
pezsp_io::misc::HostFunctions,
pezsp_io::crypto::HostFunctions,
pezsp_io::hashing::HostFunctions,
pezsp_io::allocator::HostFunctions,
pezsp_io::logging::HostFunctions,
pezsp_io::trie::HostFunctions,
);
/// The validation externalities that will panic on any storage related access. (PVFs should not
/// have a notion of a persistent storage/trie.)
struct ValidationExternalities(sp_externalities::Extensions);
struct ValidationExternalities(pezsp_externalities::Extensions);
impl sp_externalities::Externalities for ValidationExternalities {
impl pezsp_externalities::Externalities for ValidationExternalities {
fn storage(&mut self, _: &[u8]) -> Option<Vec<u8>> {
panic!("storage: unsupported feature for teyrchain validation")
}
@@ -267,11 +267,11 @@ impl sp_externalities::Externalities for ValidationExternalities {
panic!("place_child_storage: unsupported feature for teyrchain validation")
}
fn storage_root(&mut self, _: sp_core::storage::StateVersion) -> Vec<u8> {
fn storage_root(&mut self, _: pezsp_core::storage::StateVersion) -> Vec<u8> {
panic!("storage_root: unsupported feature for teyrchain validation")
}
fn child_storage_root(&mut self, _: &ChildInfo, _: sp_core::storage::StateVersion) -> Vec<u8> {
fn child_storage_root(&mut self, _: &ChildInfo, _: pezsp_core::storage::StateVersion) -> Vec<u8> {
panic!("child_storage_root: unsupported feature for teyrchain validation")
}
@@ -332,7 +332,7 @@ impl sp_externalities::Externalities for ValidationExternalities {
}
}
impl sp_externalities::ExtensionStore for ValidationExternalities {
impl pezsp_externalities::ExtensionStore for ValidationExternalities {
fn extension_by_type_id(&mut self, type_id: TypeId) -> Option<&mut dyn Any> {
self.0.get_mut(type_id)
}
@@ -340,35 +340,35 @@ impl sp_externalities::ExtensionStore for ValidationExternalities {
fn register_extension_with_type_id(
&mut self,
type_id: TypeId,
extension: Box<dyn sp_externalities::Extension>,
) -> Result<(), sp_externalities::Error> {
extension: Box<dyn pezsp_externalities::Extension>,
) -> Result<(), pezsp_externalities::Error> {
self.0.register_with_type_id(type_id, extension)
}
fn deregister_extension_by_type_id(
&mut self,
type_id: TypeId,
) -> Result<(), sp_externalities::Error> {
) -> Result<(), pezsp_externalities::Error> {
if self.0.deregister(type_id) {
Ok(())
} else {
Err(sp_externalities::Error::ExtensionIsNotRegistered(type_id))
Err(pezsp_externalities::Error::ExtensionIsNotRegistered(type_id))
}
}
}
struct ReadRuntimeVersion;
impl sp_core::traits::ReadRuntimeVersion for ReadRuntimeVersion {
impl pezsp_core::traits::ReadRuntimeVersion for ReadRuntimeVersion {
fn read_runtime_version(
&self,
wasm_code: &[u8],
_ext: &mut dyn sp_externalities::Externalities,
_ext: &mut dyn pezsp_externalities::Externalities,
) -> Result<Vec<u8>, String> {
let blob = RuntimeBlob::uncompress_if_needed(wasm_code)
.map_err(|e| format!("Failed to read the PVF runtime blob: {:?}", e))?;
match sc_executor::read_embedded_version(&blob)
match pezsc_executor::read_embedded_version(&blob)
.map_err(|e| format!("Failed to read the static section from the PVF blob: {:?}", e))?
{
Some(version) => {
+3 -3
View File
@@ -28,12 +28,12 @@ pub mod worker_dir;
pub use cpu_time::ProcessTime;
// Used by `decl_worker_main!`.
pub use sp_tracing;
pub use pezsp_tracing;
const LOG_TARGET: &str = "teyrchain::pvf-common";
use codec::{Decode, Encode};
use sp_core::H256;
use pezsp_core::H256;
use std::{
io::{self, Read, Write},
mem,
@@ -95,7 +95,7 @@ pub struct ArtifactChecksum(H256);
/// Compute the checksum of the given artifact.
pub fn compute_checksum(data: &[u8]) -> ArtifactChecksum {
ArtifactChecksum(H256::from_slice(&sp_crypto_hashing::twox_256(data)))
ArtifactChecksum(H256::from_slice(&pezsp_crypto_hashing::twox_256(data)))
}
#[cfg(all(test, not(feature = "test-utils")))]
+1 -1
View File
@@ -50,7 +50,7 @@ impl PvfPrepData {
validation_code_bomb_limit: u32,
) -> Self {
let maybe_compressed_code = Arc::new(code);
let code_hash = sp_crypto_hashing::blake2_256(&maybe_compressed_code).into();
let code_hash = pezsp_crypto_hashing::blake2_256(&maybe_compressed_code).into();
let executor_params = Arc::new(executor_params);
Self {
maybe_compressed_code,
@@ -59,7 +59,7 @@ macro_rules! decl_worker_main {
#[cfg(target_os = "linux")]
use $crate::worker::security;
$crate::sp_tracing::try_init_simple();
$crate::pezsp_tracing::try_init_simple();
let args = std::env::args().collect::<Vec<_>>();
if args.len() == 1 {
@@ -34,7 +34,7 @@
//! reasons.
//!
//! Considering `io_uring`'s status discussed above, and that it very likely would get detected
//! either by our [static analysis](https://github.com/paritytech/polkadot-sdk/pull/1663) or by
//! either by our [static analysis](https://github.com/pezkuwichain/kurdistan-sdk/issues/106) or by
//! testing, we think it is safe to block it.
//!
//! ## Consensus analysis
@@ -25,7 +25,7 @@ pezkuwi-node-primitives = { workspace = true, default-features = true }
pezkuwi-primitives = { workspace = true, default-features = true }
pezkuwi-teyrchain-primitives = { workspace = true, default-features = true }
sp-maybe-compressed-blob = { workspace = true, default-features = true }
pezsp-maybe-compressed-blob = { workspace = true, default-features = true }
[features]
builder = []
@@ -218,7 +218,7 @@ pub fn worker_entrypoint(
let compiled_artifact_blob = Arc::new(compiled_artifact_blob);
let raw_block_data =
match sp_maybe_compressed_blob::decompress(&pov.block_data.0, POV_BOMB_LIMIT) {
match pezsp_maybe_compressed_blob::decompress(&pov.block_data.0, POV_BOMB_LIMIT) {
Ok(data) => data,
Err(_) => {
send_result::<WorkerResponse, WorkerError>(
@@ -519,7 +519,7 @@ fn handle_child_process(
///
/// # Background
///
/// Wasmtime powers the Substrate Executor. It compiles the wasm bytecode into native code.
/// Wasmtime powers the Bizinikiwi Executor. It compiles the wasm bytecode into native code.
/// That native code does not create any stacks and just reuses the stack of the thread that
/// wasmtime was invoked from.
///
@@ -29,7 +29,7 @@ codec = { features = ["derive"], workspace = true }
pezkuwi-node-core-pvf-common = { workspace = true, default-features = true }
pezkuwi-primitives = { workspace = true, default-features = true }
sp-maybe-compressed-blob = { workspace = true, default-features = true }
pezsp-maybe-compressed-blob = { workspace = true, default-features = true }
[target.'cfg(target_os = "linux")'.dependencies]
tikv-jemallocator = { workspace = true }
@@ -26,7 +26,7 @@ use std::time::Duration;
fn do_prepare_runtime(pvf: PvfPrepData) {
let maybe_compressed_code = pvf.maybe_compressed_code();
let raw_validation_code =
sp_maybe_compressed_blob::decompress(&maybe_compressed_code, usize::MAX).unwrap();
pezsp_maybe_compressed_blob::decompress(&maybe_compressed_code, usize::MAX).unwrap();
let blob = match prevalidate(&raw_validation_code) {
Err(err) => panic!("{:?}", err),
@@ -41,7 +41,7 @@ fn do_prepare_runtime(pvf: PvfPrepData) {
fn prepare_pezkuwichain_runtime(c: &mut Criterion) {
let blob = pezkuwichain_runtime::WASM_BINARY.unwrap();
let pvf = match sp_maybe_compressed_blob::decompress(&blob, 64 * 1024 * 1024) {
let pvf = match pezsp_maybe_compressed_blob::decompress(&blob, 64 * 1024 * 1024) {
Ok(code) => PvfPrepData::from_code(
code.into_owned(),
ExecutorParams::default(),
@@ -298,7 +298,7 @@ pub fn worker_entrypoint(
fn prepare_artifact(pvf: PvfPrepData) -> Result<PrepareOutcome, PrepareError> {
let maybe_compressed_code = pvf.maybe_compressed_code();
let raw_validation_code = sp_maybe_compressed_blob::decompress(
let raw_validation_code = pezsp_maybe_compressed_blob::decompress(
&maybe_compressed_code,
pvf.validation_code_bomb_limit() as usize,
)
@@ -24,7 +24,7 @@
//!
//! Currently we are only logging these for the purposes of gathering data. In the future, we may
//! use these stats to reject PVFs during pre-checking. See
//! <https://github.com/paritytech/polkadot/issues/6472#issuecomment-1381941762> for more
//! <https://github.com/pezkuwichain/kurdistan-sdk/issues/166#issuecomment-1381941762> for more
//! background.
/// Module for the memory tracker. The memory tracker runs in its own thread, where it polls memory
+1 -1
View File
@@ -910,7 +910,7 @@ impl Unscheduled {
mod tests {
use pezkuwi_node_primitives::BlockData;
use pezkuwi_node_subsystem_test_helpers::mock::new_leaf;
use sp_core::H256;
use pezsp_core::H256;
use super::*;
use crate::testing::artifact_id;
+1 -1
View File
@@ -1055,7 +1055,7 @@ pub(crate) mod tests {
use assert_matches::assert_matches;
use futures::future::BoxFuture;
use pezkuwi_node_primitives::BlockData;
use sp_core::H256;
use pezsp_core::H256;
const TEST_EXECUTION_TIMEOUT: Duration = Duration::from_secs(3);
pub(crate) const TEST_PREPARATION_TIMEOUT: Duration = Duration::from_secs(30);
@@ -33,7 +33,7 @@ use pezkuwi_node_core_pvf_common::{
worker_dir, SecurityStatus,
};
use sp_core::hexdisplay::HexDisplay;
use pezsp_core::hexdisplay::HexDisplay;
use std::{
path::{Path, PathBuf},
time::Duration,
+1 -1
View File
@@ -40,7 +40,7 @@ pub fn validate_candidate(
use pezkuwi_node_core_pvf_common::executor_interface::{prepare, prevalidate};
use pezkuwi_node_core_pvf_execute_worker::execute_artifact;
let code = sp_maybe_compressed_blob::decompress(code, 10 * 1024 * 1024)
let code = pezsp_maybe_compressed_blob::decompress(code, 10 * 1024 * 1024)
.expect("Decompressing code failed");
let blob = prevalidate(&code)?;
@@ -238,7 +238,7 @@ impl WorkerHandle {
let mut command = process::Command::new(program.as_ref());
command.env_clear();
command.env("RUST_LOG", sc_tracing::logging::get_directives().join(","));
command.env("RUST_LOG", pezsc_tracing::logging::get_directives().join(","));
let mut child = command
.args(extra_args)
+1 -1
View File
@@ -23,7 +23,7 @@ use pezkuwi_primitives::PersistedValidationData;
use pezkuwi_teyrchain_primitives::primitives::{
BlockData as GenericBlockData, HeadData as GenericHeadData,
};
use sp_core::H256;
use pezsp_core::H256;
use test_teyrchain_adder::{hash_state, BlockData, HeadData};
#[tokio::test]
+4 -4
View File
@@ -31,7 +31,7 @@ use pezkuwi_primitives::{
ExecutorParam, ExecutorParams, Hash, PersistedValidationData, PvfExecKind as RuntimePvfExecKind,
};
use pezkuwi_teyrchain_primitives::primitives::{BlockData, ValidationResult};
use sp_core::H256;
use pezsp_core::H256;
const VALIDATION_CODE_BOMB_LIMIT: u32 = 30 * 1024 * 1024;
@@ -789,7 +789,7 @@ async fn artifact_does_reprepare_on_meaningful_exec_parameter_change() {
async fn invalid_compressed_code_fails_prechecking() {
let host = TestHost::new().await;
let raw_code = vec![2u8; VALIDATION_CODE_BOMB_LIMIT as usize + 1];
let validation_code = sp_maybe_compressed_blob::compress_strongly(
let validation_code = pezsp_maybe_compressed_blob::compress_strongly(
&raw_code,
VALIDATION_CODE_BOMB_LIMIT as usize + 1,
)
@@ -813,7 +813,7 @@ async fn invalid_compressed_code_fails_validation() {
let pov = PoV { block_data: BlockData(Vec::new()) };
let raw_code = vec![2u8; VALIDATION_CODE_BOMB_LIMIT as usize + 1];
let validation_code = sp_maybe_compressed_blob::compress_strongly(
let validation_code = pezsp_maybe_compressed_blob::compress_strongly(
&raw_code,
VALIDATION_CODE_BOMB_LIMIT as usize + 1,
)
@@ -841,7 +841,7 @@ async fn invalid_compressed_pov_fails_validation() {
};
let raw_block_data = vec![1u8; POV_BOMB_LIMIT + 1];
let block_data =
sp_maybe_compressed_blob::compress_weakly(&raw_block_data, POV_BOMB_LIMIT + 1).unwrap();
pezsp_maybe_compressed_blob::compress_weakly(&raw_block_data, POV_BOMB_LIMIT + 1).unwrap();
let pov = PoV { block_data: BlockData(block_data) };
let result = host
+1 -1
View File
@@ -30,7 +30,7 @@ use pezkuwi_teyrchain_primitives::primitives::{
};
use procfs::process;
use rusty_fork::rusty_fork_test;
use sp_core::H256;
use pezsp_core::H256;
use std::{future::Future, sync::Arc, time::Duration};
use test_teyrchain_adder::{hash_state, BlockData, HeadData};