chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -48,7 +48,6 @@ use pezsc_network::{
|
||||
Multiaddr, NetworkDHTProvider, NetworkSigner, NetworkStateInfo,
|
||||
};
|
||||
use pezsc_network_types::{multihash::Code, PeerId};
|
||||
use schema::PeerSignature;
|
||||
use pezsp_api::{ApiError, ProvideRuntimeApi};
|
||||
use pezsp_authority_discovery::{
|
||||
AuthorityDiscoveryApi, AuthorityId, AuthorityPair, AuthoritySignature,
|
||||
@@ -60,6 +59,7 @@ use pezsp_core::{
|
||||
};
|
||||
use pezsp_keystore::{Keystore, KeystorePtr};
|
||||
use pezsp_runtime::traits::Block as BlockT;
|
||||
use schema::PeerSignature;
|
||||
|
||||
mod addr_cache;
|
||||
/// Dht payload schemas generated from Protobuf definitions via Prost crate in build.rs.
|
||||
|
||||
@@ -20,9 +20,9 @@ use crate::error::Error;
|
||||
use log::{info, warn};
|
||||
use pezsc_network::{multiaddr::Protocol, Multiaddr};
|
||||
use pezsc_network_types::PeerId;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezsp_authority_discovery::AuthorityId;
|
||||
use pezsp_runtime::DeserializeOwned;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
collections::{hash_map::Entry, HashMap, HashSet},
|
||||
fs::File,
|
||||
@@ -300,8 +300,8 @@ mod tests {
|
||||
|
||||
use super::*;
|
||||
|
||||
use quickcheck::{Arbitrary, Gen, QuickCheck, TestResult};
|
||||
use pezsc_network_types::multihash::{Code, Multihash};
|
||||
use quickcheck::{Arbitrary, Gen, QuickCheck, TestResult};
|
||||
|
||||
use pezsp_authority_discovery::{AuthorityId, AuthorityPair};
|
||||
use pezsp_core::crypto::Pair;
|
||||
|
||||
@@ -26,9 +26,9 @@ mod schema_v2 {
|
||||
|
||||
use super::*;
|
||||
use codec::Encode;
|
||||
use prost::Message;
|
||||
use pezsc_network::{Multiaddr, PeerId};
|
||||
use pezsc_network_types::ed25519::Keypair;
|
||||
use prost::Message;
|
||||
|
||||
#[test]
|
||||
fn v2_decodes_v1() {
|
||||
|
||||
@@ -26,6 +26,7 @@ use std::{
|
||||
use crate::tests::{create_spawner, test_config};
|
||||
|
||||
use super::*;
|
||||
use bizinikiwi_test_runtime_client::runtime::Block;
|
||||
use futures::{
|
||||
channel::mpsc::{self, channel},
|
||||
executor::{block_on, LocalPool},
|
||||
@@ -33,7 +34,6 @@ use futures::{
|
||||
sink::SinkExt,
|
||||
task::LocalSpawn,
|
||||
};
|
||||
use prometheus_endpoint::prometheus::default_registry;
|
||||
use pezsc_client_api::HeaderBackend;
|
||||
use pezsc_network::{
|
||||
service::signature::{Keypair, SigningError},
|
||||
@@ -47,7 +47,7 @@ use pezsc_network_types::{
|
||||
use pezsp_api::{ApiRef, ProvideRuntimeApi};
|
||||
use pezsp_keystore::{testing::MemoryKeystore, Keystore};
|
||||
use pezsp_runtime::traits::{Block as BlockT, NumberFor, Zero};
|
||||
use bizinikiwi_test_runtime_client::runtime::Block;
|
||||
use prometheus_endpoint::prometheus::default_registry;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub(crate) struct TestApi {
|
||||
@@ -135,8 +135,9 @@ pub struct TestNetwork {
|
||||
pub put_value_call: Arc<Mutex<Vec<(KademliaKey, Vec<u8>)>>>,
|
||||
pub put_value_to_call: Arc<Mutex<Vec<(Record, HashSet<pezsc_network_types::PeerId>, bool)>>>,
|
||||
pub get_value_call: Arc<Mutex<Vec<KademliaKey>>>,
|
||||
pub store_value_call:
|
||||
Arc<Mutex<Vec<(KademliaKey, Vec<u8>, Option<pezsc_network_types::PeerId>, Option<Instant>)>>>,
|
||||
pub store_value_call: Arc<
|
||||
Mutex<Vec<(KademliaKey, Vec<u8>, Option<pezsc_network_types::PeerId>, Option<Instant>)>>,
|
||||
>,
|
||||
|
||||
event_sender: mpsc::UnboundedSender<TestNetworkEvent>,
|
||||
event_receiver: Option<mpsc::UnboundedReceiver<TestNetworkEvent>>,
|
||||
|
||||
Reference in New Issue
Block a user