mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
Network sync refactoring (part 7) (#12006)
* Move `MultiaddrWithPeerId` and related parsing functions into `sc-network-common`, remove dependency on `sc-network` from `sc-chain-spec` * Remove dependency on `sc-network` from `sc-offchain` * Remove dependency on `sc-network` from `sc-network-gossip`
This commit is contained in:
@@ -22,7 +22,7 @@ use crate::NetworkProvider;
|
||||
use codec::{Decode, Encode};
|
||||
use futures::Future;
|
||||
pub use http::SharedClient;
|
||||
use sc_network::{Multiaddr, PeerId};
|
||||
use libp2p::{Multiaddr, PeerId};
|
||||
use sp_core::{
|
||||
offchain::{
|
||||
self, HttpError, HttpRequestId, HttpRequestStatus, OffchainStorage, OpaqueMultiaddr,
|
||||
@@ -324,9 +324,10 @@ impl AsyncApi {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use libp2p::PeerId;
|
||||
use sc_client_db::offchain::LocalStorage;
|
||||
use sc_network::{PeerId, ReputationChange};
|
||||
use sc_network_common::service::{NetworkPeers, NetworkStateInfo};
|
||||
use sc_peerset::ReputationChange;
|
||||
use sp_core::offchain::{DbExternalities, Externalities};
|
||||
use std::{borrow::Cow, time::SystemTime};
|
||||
|
||||
|
||||
@@ -246,9 +246,10 @@ pub async fn notification_future<Client, Block, Spawner>(
|
||||
mod tests {
|
||||
use super::*;
|
||||
use futures::executor::block_on;
|
||||
use libp2p::{Multiaddr, PeerId};
|
||||
use sc_block_builder::BlockBuilderProvider as _;
|
||||
use sc_client_api::Backend as _;
|
||||
use sc_network::{Multiaddr, PeerId, ReputationChange};
|
||||
use sc_peerset::ReputationChange;
|
||||
use sc_transaction_pool::{BasicPool, FullChainApi};
|
||||
use sc_transaction_pool_api::{InPoolTransaction, TransactionPool};
|
||||
use sp_consensus::BlockOrigin;
|
||||
|
||||
Reference in New Issue
Block a user