chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -20,7 +20,6 @@ use pezkuwi_node_network_protocol::{
|
||||
grid_topology::{SessionGridTopology, TopologyPeerInfo},
|
||||
View,
|
||||
};
|
||||
use pezkuwi_pez_node_primitives::approval::time::{Clock, SystemClock, Tick};
|
||||
use pezkuwi_node_subsystem::messages::{
|
||||
ApprovalDistributionMessage, ApprovalVotingParallelMessage,
|
||||
};
|
||||
@@ -28,13 +27,12 @@ use pezkuwi_node_subsystem_types::messages::{
|
||||
network_bridge_event::NewGossipTopology, NetworkBridgeEvent,
|
||||
};
|
||||
use pezkuwi_overseer::AllMessages;
|
||||
use pezkuwi_pez_node_primitives::approval::time::{Clock, SystemClock, Tick};
|
||||
use pezkuwi_primitives::{
|
||||
BlockNumber, CandidateEvent, CandidateReceiptV2, CoreIndex, GroupIndex, Hash, Header,
|
||||
Id as ParaId, MutateDescriptorV2, Slot, ValidatorIndex,
|
||||
};
|
||||
use pezkuwi_primitives_test_helpers::dummy_candidate_receipt_v2_bad_sig;
|
||||
use rand::{seq::SliceRandom, SeedableRng};
|
||||
use rand_chacha::ChaCha20Rng;
|
||||
use pezsc_network_types::PeerId;
|
||||
use pezsp_consensus_babe::{
|
||||
digests::{CompatibleDigestItem, PreDigest, SecondaryVRFPreDigest},
|
||||
@@ -43,6 +41,8 @@ use pezsp_consensus_babe::{
|
||||
use pezsp_core::crypto::VrfSecret;
|
||||
use pezsp_keyring::sr25519::Keyring as Sr25519Keyring;
|
||||
use pezsp_runtime::{Digest, DigestItem};
|
||||
use rand::{seq::SliceRandom, SeedableRng};
|
||||
use rand_chacha::ChaCha20Rng;
|
||||
use std::sync::{atomic::AtomicU64, Arc};
|
||||
|
||||
/// A fake system clock used for driving the approval voting and make
|
||||
|
||||
@@ -43,17 +43,17 @@ use pezkuwi_primitives::{
|
||||
ApprovalVoteMultipleCandidates, CandidateEvent, CandidateHash, CandidateIndex, CoreIndex, Hash,
|
||||
SessionInfo, Slot, ValidatorId, ValidatorIndex, ASSIGNMENT_KEY_TYPE_ID,
|
||||
};
|
||||
use rand::{seq::SliceRandom, RngCore, SeedableRng};
|
||||
use rand_chacha::ChaCha20Rng;
|
||||
use rand_distr::{Distribution, Normal};
|
||||
use pezsc_keystore::LocalKeystore;
|
||||
use pezsc_network_types::PeerId;
|
||||
use pezsc_service::SpawnTaskHandle;
|
||||
use sha1::Digest;
|
||||
use pezsp_application_crypto::AppCrypto;
|
||||
use pezsp_consensus_babe::SlotDuration;
|
||||
use pezsp_keystore::Keystore;
|
||||
use pezsp_timestamp::Timestamp;
|
||||
use rand::{seq::SliceRandom, RngCore, SeedableRng};
|
||||
use rand_chacha::ChaCha20Rng;
|
||||
use rand_distr::{Distribution, Normal};
|
||||
use sha1::Digest;
|
||||
use std::{
|
||||
cmp::max,
|
||||
collections::{BTreeMap, HashSet},
|
||||
|
||||
@@ -16,9 +16,11 @@
|
||||
|
||||
use crate::approval::{ApprovalTestState, PastSystemClock, LOG_TARGET, SLOT_DURATION_MILLIS};
|
||||
use futures::FutureExt;
|
||||
use pezkuwi_pez_node_primitives::approval::time::{slot_number_to_tick, Clock, TICK_DURATION_MILLIS};
|
||||
use pezkuwi_node_subsystem::{overseer, SpawnedSubsystem, SubsystemError};
|
||||
use pezkuwi_node_subsystem_types::messages::ChainSelectionMessage;
|
||||
use pezkuwi_pez_node_primitives::approval::time::{
|
||||
slot_number_to_tick, Clock, TICK_DURATION_MILLIS,
|
||||
};
|
||||
|
||||
/// Mock ChainSelection subsystem used to answer request made by the approval-voting subsystem,
|
||||
/// during benchmark. All the necessary information to answer the requests is stored in the `state`
|
||||
|
||||
@@ -58,25 +58,25 @@ use pezkuwi_node_core_approval_voting::{
|
||||
ApprovalVotingSubsystem, Config as ApprovalVotingConfig, RealAssignmentCriteria,
|
||||
};
|
||||
use pezkuwi_node_network_protocol::v3 as protocol_v3;
|
||||
use pezkuwi_pez_node_primitives::approval::{self, v1::RelayVRFStory};
|
||||
use pezkuwi_node_subsystem::{
|
||||
messages::{ApprovalDistributionMessage, ApprovalVotingMessage, ApprovalVotingParallelMessage},
|
||||
overseer, AllMessages, Overseer, OverseerConnector, SpawnGlue,
|
||||
};
|
||||
use pezkuwi_node_subsystem_test_helpers::mock::new_block_import_info;
|
||||
use pezkuwi_overseer::Handle as OverseerHandleReal;
|
||||
use pezkuwi_pez_node_primitives::approval::{self, v1::RelayVRFStory};
|
||||
use pezkuwi_primitives::{
|
||||
BlockNumber, CandidateEvent, CandidateIndex, CandidateReceiptV2 as CandidateReceipt, Hash,
|
||||
Header, Slot, ValidatorId, ValidatorIndex, ASSIGNMENT_KEY_TYPE_ID,
|
||||
};
|
||||
use prometheus::Registry;
|
||||
use pezsc_keystore::LocalKeystore;
|
||||
use pezsc_service::SpawnTaskHandle;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezsp_application_crypto::AppCrypto;
|
||||
use pezsp_consensus_babe::Epoch as BabeEpoch;
|
||||
use pezsp_core::H256;
|
||||
use pezsp_keystore::Keystore;
|
||||
use prometheus::Registry;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
cmp::max,
|
||||
collections::{HashMap, HashSet},
|
||||
|
||||
@@ -27,12 +27,12 @@ use pezkuwi_node_network_protocol::{
|
||||
request_response::{v2::ChunkFetchingRequest, ReqProtocolNames},
|
||||
ValidationProtocols, VersionedValidationProtocol,
|
||||
};
|
||||
use pezkuwi_pez_node_primitives::{AvailableData, BlockData, ErasureChunk, PoV};
|
||||
use pezkuwi_node_subsystem_test_helpers::{
|
||||
derive_erasure_chunks_with_proofs_and_root, mock::new_block_import_info,
|
||||
};
|
||||
use pezkuwi_node_subsystem_util::availability_chunks::availability_chunk_indices;
|
||||
use pezkuwi_overseer::BlockInfo;
|
||||
use pezkuwi_pez_node_primitives::{AvailableData, BlockData, ErasureChunk, PoV};
|
||||
use pezkuwi_primitives::{
|
||||
AvailabilityBitfield, BlockNumber, CandidateHash, CandidateReceiptV2 as CandidateReceipt,
|
||||
ChunkIndex, CoreIndex, Hash, HeadData, Header, PersistedValidationData, Signed, SigningContext,
|
||||
|
||||
@@ -20,13 +20,13 @@ use crate::keyring::Keyring;
|
||||
use itertools::Itertools;
|
||||
use pezkuwi_node_network_protocol::authority_discovery::AuthorityDiscovery;
|
||||
use pezkuwi_primitives::{AssignmentId, AuthorityDiscoveryId, ValidatorId, ValidatorPair};
|
||||
use rand::thread_rng;
|
||||
use rand_distr::{Distribution, Normal, Uniform};
|
||||
use pezsc_network::Multiaddr;
|
||||
use pezsc_network_types::PeerId;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezsp_consensus_babe::AuthorityId;
|
||||
use pezsp_core::Pair;
|
||||
use rand::thread_rng;
|
||||
use rand_distr::{Distribution, Normal, Uniform};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::{HashMap, HashSet};
|
||||
|
||||
/// Peer networking latency configuration.
|
||||
|
||||
@@ -59,9 +59,9 @@ use pezkuwi_primitives::{AuthorityDiscoveryId, Block, Hash, ValidatorId};
|
||||
use pezsc_keystore::LocalKeystore;
|
||||
use pezsc_network::request_responses::IncomingRequest as RawIncomingRequest;
|
||||
use pezsc_service::SpawnTaskHandle;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezsp_keystore::Keystore;
|
||||
use pezsp_runtime::RuntimeAppPublic;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{sync::Arc, time::Instant};
|
||||
pub use test_state::TestState;
|
||||
|
||||
|
||||
@@ -24,11 +24,11 @@ use pezkuwi_node_network_protocol::request_response::{
|
||||
v1::{DisputeRequest, DisputeResponse},
|
||||
ProtocolName, Requests,
|
||||
};
|
||||
use pezkuwi_node_subsystem_test_helpers::mock::new_block_import_info;
|
||||
use pezkuwi_overseer::BlockInfo;
|
||||
use pezkuwi_pez_node_primitives::{
|
||||
InvalidDisputeVote, SignedDisputeStatement, UncheckedDisputeMessage, ValidDisputeVote,
|
||||
};
|
||||
use pezkuwi_node_subsystem_test_helpers::mock::new_block_import_info;
|
||||
use pezkuwi_overseer::BlockInfo;
|
||||
use pezkuwi_primitives::{
|
||||
AuthorityDiscoveryId, BlockNumber, CandidateCommitments, CandidateEvent, CandidateHash,
|
||||
CandidateReceiptV2, CoreIndex, GroupIndex, Hash, HeadData, Header, InvalidDisputeStatementKind,
|
||||
|
||||
@@ -23,11 +23,11 @@ use pezkuwi_node_network_protocol::request_response::{
|
||||
v1::AvailableDataFetchingResponse, v2::ChunkFetchingResponse, Protocol, ReqProtocolNames,
|
||||
Requests,
|
||||
};
|
||||
use pezkuwi_pez_node_primitives::{AvailableData, ErasureChunk};
|
||||
use pezkuwi_node_subsystem::{
|
||||
messages::AvailabilityStoreMessage, overseer, SpawnedSubsystem, SubsystemError,
|
||||
};
|
||||
use pezkuwi_node_subsystem_types::OverseerSignal;
|
||||
use pezkuwi_pez_node_primitives::{AvailableData, ErasureChunk};
|
||||
use pezkuwi_primitives::{CandidateHash, ChunkIndex, CoreIndex, ValidatorIndex};
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use futures::FutureExt;
|
||||
use pezkuwi_pez_node_primitives::{AvailableData, BlockData, PoV};
|
||||
use pezkuwi_node_subsystem::{
|
||||
messages::AvailabilityRecoveryMessage, overseer, SpawnedSubsystem, SubsystemError,
|
||||
};
|
||||
use pezkuwi_node_subsystem_types::OverseerSignal;
|
||||
use pezkuwi_pez_node_primitives::{AvailableData, BlockData, PoV};
|
||||
use pezkuwi_primitives::{Hash, HeadData, PersistedValidationData};
|
||||
|
||||
const LOG_TARGET: &str = "subsystem-bench::availability-recovery-mock";
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
|
||||
use crate::{configuration::TestConfiguration, NODE_UNDER_TEST};
|
||||
use futures::FutureExt;
|
||||
use pezkuwi_pez_node_primitives::{SignedFullStatementWithPVD, Statement, StatementWithPVD};
|
||||
use pezkuwi_node_subsystem::{
|
||||
messages::CandidateBackingMessage, overseer, SpawnedSubsystem, SubsystemError,
|
||||
};
|
||||
use pezkuwi_node_subsystem_types::OverseerSignal;
|
||||
use pezkuwi_pez_node_primitives::{SignedFullStatementWithPVD, Statement, StatementWithPVD};
|
||||
use pezkuwi_primitives::{
|
||||
CandidateHash, Hash, PersistedValidationData, SigningContext, ValidatorIndex, ValidatorPair,
|
||||
};
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
//! is responding with candidate valid for every request.
|
||||
|
||||
use futures::FutureExt;
|
||||
use pezkuwi_pez_node_primitives::ValidationResult;
|
||||
use pezkuwi_node_subsystem::{
|
||||
messages::CandidateValidationMessage, overseer, SpawnedSubsystem, SubsystemError,
|
||||
};
|
||||
use pezkuwi_node_subsystem_types::OverseerSignal;
|
||||
use pezkuwi_pez_node_primitives::ValidationResult;
|
||||
use pezkuwi_primitives::{CandidateCommitments, Hash, HeadData, PersistedValidationData};
|
||||
|
||||
const LOG_TARGET: &str = "subsystem-bench::candidate-validation-mock";
|
||||
|
||||
@@ -64,14 +64,14 @@ use pezkuwi_node_subsystem_util::metrics::prometheus::{
|
||||
};
|
||||
use pezkuwi_overseer::AllMessages;
|
||||
use pezkuwi_primitives::AuthorityDiscoveryId;
|
||||
use prometheus_endpoint::U64;
|
||||
use rand::{seq::SliceRandom, thread_rng};
|
||||
use pezsc_network::{
|
||||
request_responses::{IncomingRequest, OutgoingResponse},
|
||||
RequestFailure,
|
||||
};
|
||||
use pezsc_network_types::PeerId;
|
||||
use pezsc_service::SpawnTaskHandle;
|
||||
use prometheus_endpoint::U64;
|
||||
use rand::{seq::SliceRandom, thread_rng};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
sync::Arc,
|
||||
|
||||
@@ -35,11 +35,11 @@ use pezkuwi_node_network_protocol::{
|
||||
},
|
||||
ValidationProtocols,
|
||||
};
|
||||
use pezkuwi_pez_node_primitives::{AvailableData, BlockData, PoV};
|
||||
use pezkuwi_node_subsystem_test_helpers::{
|
||||
derive_erasure_chunks_with_proofs_and_root, mock::new_block_import_info,
|
||||
};
|
||||
use pezkuwi_overseer::BlockInfo;
|
||||
use pezkuwi_pez_node_primitives::{AvailableData, BlockData, PoV};
|
||||
|
||||
use pezkuwi_primitives::MutateDescriptorV2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user